Add etcd as a service discovery mechanism

pull/2318/head
skiffer-git 5 months ago
parent e44f053100
commit 3074604c86

@ -212,8 +212,11 @@ func (ws *WsServer) sendUserOnlineInfoToOtherNode(ctx context.Context, client *C
// Online push user online message to other node // Online push user online message to other node
for _, v := range conns { for _, v := range conns {
log.ZDebug(ctx, " sendUserOnlineInfoToOtherNode conn ", "target", v.Target()) log.ZDebug(ctx, " sendUserOnlineInfoToOtherNode conn ", "target", v.Target())
if v.Target() == ws.disCov.GetSelfConnTarget() { //if v.Target() == ws.disCov.GetSelfConnTarget() {
log.ZDebug(ctx, "Filter out this node", "node", v.Target()) // log.ZDebug(ctx, "Filter out this node", "node", v.Target())
// continue
//}
if true {
continue continue
} }

Loading…
Cancel
Save