Updates server logic
All checks were successful
Build and Push Multi-Platform Docker Image / build-and-push (push) Successful in 16s
All checks were successful
Build and Push Multi-Platform Docker Image / build-and-push (push) Successful in 16s
This commit is contained in:
@@ -47,6 +47,7 @@ async def handler(ws: websockets.WebSocketServerProtocol):
|
||||
logging.warning("Target %s not found", target)
|
||||
|
||||
elif mtype == "labels":
|
||||
logging.info(f"Got labels from {peer_id}: {msg['labels']}")
|
||||
labels = msg.get("labels")
|
||||
if peer_id and isinstance(labels, list):
|
||||
CLIENT_LABELS[peer_id] = labels
|
||||
|
||||
Reference in New Issue
Block a user