Add etcd as a service discovery mechanism

This commit is contained in:
skiffer-git
2024-05-11 15:51:57 +08:00
parent e94598f5c1
commit 140f734728
3 changed files with 7 additions and 10 deletions
+1 -1
View File
@@ -267,7 +267,7 @@ func (ws *WsServer) registerClient(client *Client) {
}
wg := sync.WaitGroup{}
if ws.msgGatewayConfig.Share.Env == "zookeeper" {
if ws.msgGatewayConfig.Discovery.Enable != "k8s" {
wg.Add(1)
go func() {
defer wg.Done()