Add etcd as a service discovery mechanism

This commit is contained in:
skiffer-git 2024-05-13 11:50:01 +08:00
parent 6041f4e793
commit 4d300e9abe

View File

@ -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() {