Commit c2545270 authored by Manuel's avatar Manuel

[TraceRetrieval] Injected RestFetcher in main.py

parent 6d7ef4dd
...@@ -22,9 +22,10 @@ from env_info import is_running_locally, get_resources_path ...@@ -22,9 +22,10 @@ from env_info import is_running_locally, get_resources_path
from database.repository import Repository from database.repository import Repository
from messaging.MessageHandler import MessageHandler from messaging.MessageHandler import MessageHandler
from messaging.ReconnectingMessageManager import ReconnectingMessageManager from messaging.ReconnectingMessageManager import ReconnectingMessageManager
from messaging.rest_fetcher import RestFetcher
# init message handler # init message handler
message_handler = MessageHandler(Repository(), ReconnectingMessageManager.getInstance()) message_handler = MessageHandler(Repository(), ReconnectingMessageManager.getInstance(), RestFetcher())
def message_received_callback(channel, method, properties, body): def message_received_callback(channel, method, properties, body):
message_handler.handle_generic(body) message_handler.handle_generic(body)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment