Archived
Added gauges on connector connect
This commit is contained in:
@@ -79,6 +79,9 @@ async def _handle_connector(
|
||||
)
|
||||
await write_message(writer, handshake_accepted)
|
||||
|
||||
for signal in connector_hello.signals:
|
||||
state.new_signal_queue.put(signal)
|
||||
|
||||
heartbeat_task = asyncio.create_task(_heartbeat_loop(writer))
|
||||
timeout_event = asyncio.Event()
|
||||
timeout_task = asyncio.create_task(
|
||||
@@ -103,6 +106,8 @@ async def _handle_connector(
|
||||
return
|
||||
|
||||
finally:
|
||||
for signal in connector_hello.signals:
|
||||
state.removed_signal_queue.put(signal)
|
||||
heartbeat_task.cancel()
|
||||
timeout_task.cancel()
|
||||
print(f"Connector disconnected {peer}")
|
||||
|
||||
Reference in New Issue
Block a user