Add etcd as a service discovery mechanism

This commit is contained in:
skiffer-git 2024-05-11 18:21:26 +08:00
parent 21999fc546
commit 4dc0c3d0d6

View File

@ -216,7 +216,9 @@ func (ws *WsServer) sendUserOnlineInfoToOtherNode(ctx context.Context, client *C
log.ZDebug(ctx, "Filter out this node", "node", v.Target())
continue
}
fmt.Printf("Connection target: %s\n", v.Target())
log.ZDebug(ctx, "target ", v.Target())
wg.Go(func() error {
msgClient := msggateway.NewMsgGatewayClient(v)
_, err := msgClient.MultiTerminalLoginCheck(ctx, &msggateway.MultiTerminalLoginCheckReq{