Made listeners only work for listenable connections.

This commit is contained in:
2025-04-07 20:32:16 +03:00
parent 51ebd6f204
commit b6bf6fa311
2 changed files with 6 additions and 2 deletions

View File

@@ -30,9 +30,9 @@ async def shutdown():
async def mysql_streams_listeners_creator():
from data.crud import read_all_connections
from data.crud import read_all_listenable_connection
async with SessionLocal() as db:
connections = await read_all_connections(db=db)
connections = await read_all_listenable_connection(db=db)
from utils.binlog import start_listeners
start_listeners(connections=connections)