Add etcd as a service discovery mechanism

This commit is contained in:
skiffer-git
2024-05-14 08:57:55 +08:00
parent 188f27b0f6
commit e58d8c40a4
2 changed files with 8 additions and 23 deletions
-3
View File
@@ -2,7 +2,6 @@ package push
import (
"context"
"fmt"
"github.com/openimsdk/protocol/msggateway"
"github.com/openimsdk/protocol/sdkws"
"github.com/openimsdk/tools/discovery"
@@ -82,8 +81,6 @@ func (d *DefaultAllNode) GetConnsAndOnlinePush(ctx context.Context, msg *sdkws.M
// Online push message
for _, conn := range conns {
fmt.Println(ctx, "get gateway conn detail ", "conn ", *conn)
conn := conn // loop var safe
wg.Go(func() error {
msgClient := msggateway.NewMsgGatewayClient(conn)