Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion servc/svc/com/bus/rabbitmq.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def _connect(
on_open_callback=lambda _c: self.get_channel(method, args),
on_close_callback=self.on_connection_closed,
)
self._conn.ioloop.run_forever() # type: ignore

def _close(self, expected=True, reason: Any = None):
print("Close method called", flush=True)
Expand Down Expand Up @@ -193,7 +194,6 @@ def subscribe( # type: ignore
(route, inputProcessor, onConsuming, bindEventExchange),
blocking=False,
)
self._conn.ioloop.run_forever() # type: ignore
elif self.isBlockingConnection():
self.close()
return self.subscribe(route, inputProcessor, onConsuming, bindEventExchange)
Expand Down