agreg-server/server/app/consumer.py
Alexis Fourmaux aa72971627 feat: use connection pool instead of a single shared connection
This is useful for multitask environments (like the API), to avoid
conflicts
2026-05-11 21:46:21 +02:00

10 lines
253 B
Python

from core.logging import setup_logging
from dependencies import get_uplink_service, get_mqtt_broker
setup_logging()
if __name__ == "__main__":
broker = get_mqtt_broker()
uplink = get_uplink_service()
broker.start(on_uplink=uplink.handle)