feat: use connection pool instead of a single shared connection

This is useful for multitask environments (like the API), to avoid
conflicts
This commit is contained in:
Alexis Fourmaux 2026-05-10 14:55:50 +02:00
parent a22413bb0b
commit aa72971627
5 changed files with 95 additions and 62 deletions

View file

@ -1,10 +1,9 @@
from core.logging import setup_logging
from dependencies import get_conn, get_uplink_service, get_mqtt_broker
from dependencies import get_uplink_service, get_mqtt_broker
setup_logging()
if __name__ == "__main__":
conn = get_conn()
broker = get_mqtt_broker()
uplink = get_uplink_service()