Added gauges on connector connect

This commit is contained in:
2026-07-08 10:41:27 +01:00
parent 2748a90576
commit 5887e0d0a0
6 changed files with 71 additions and 4 deletions
+5
View File
@@ -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}")