MCPcopy Create free account
hub / github.com/dbunt1tled/python-fast-api / __init__

Method __init__

src/core/rabbit_mq/consumer.py:18–26  ·  view source on GitHub ↗
(self, config: RabbitMQConfig, log: Log)

Source from the content-addressed store, hash-verified

16
17class AsyncRabbitMQConsumer:
18 def __init__(self, config: RabbitMQConfig, log: Log) -> None:
19 self.config = config
20 self.logger = log
21 self._conn: AbstractConnection | None = None
22 self._channel: dict[str, AbstractChannel] = {}
23 self._handlers: dict[str, MessageHandler] = {}
24 self._is_initialized = False
25 self._running = False
26 self._shutdown_event = asyncio.Event()
27
28 async def initialize(
29 self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected