Add etcd as a service discovery mechanism

This commit is contained in:
skiffer-git
2024-05-14 12:26:50 +08:00
parent 404cf92ecc
commit c02fd2adc2
+1
View File
@@ -87,6 +87,7 @@ func (d *DefaultAllNode) GetConnsAndOnlinePush(ctx context.Context, msg *sdkws.M
// Online push message
for _, conn := range conns {
conn := conn // loop var safe
ctx := ctx
wg.Go(func() error {
msgClient := msggateway.NewMsgGatewayClient(conn)
reply, err := msgClient.SuperGroupOnlineBatchPushOneMsg(ctx, input)