Made listeners only work for listenable connections.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user