From 2d15c40fbf85fc5fd40762739dabb204715b0784 Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Mon, 13 May 2024 11:50:01 +0800 Subject: [PATCH] Add etcd as a service discovery mechanism --- internal/msggateway/n_ws_server.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/msggateway/n_ws_server.go b/internal/msggateway/n_ws_server.go index 29cbb51d8..515e1f7e8 100644 --- a/internal/msggateway/n_ws_server.go +++ b/internal/msggateway/n_ws_server.go @@ -267,6 +267,8 @@ func (ws *WsServer) registerClient(client *Client) { } wg := sync.WaitGroup{} + log.ZDebug(client.ctx, "ws.msgGatewayConfig.Discovery.Enable", ws.msgGatewayConfig.Discovery.Enable) + if ws.msgGatewayConfig.Discovery.Enable != "k8s" { wg.Add(1) go func() {