mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-27 12:08:52 +08:00
Add etcd as a service discovery mechanism
This commit is contained in:
parent
26e4c0d3b6
commit
9543cd878d
@ -87,12 +87,11 @@ func (d *DefaultAllNode) GetConnsAndOnlinePush(ctx context.Context, msg *sdkws.M
|
|||||||
// Online push message
|
// Online push message
|
||||||
for _, conn := range conns {
|
for _, conn := range conns {
|
||||||
conn := conn // loop var safe
|
conn := conn // loop var safe
|
||||||
ctx := ctx
|
|
||||||
wg.Go(func() error {
|
wg.Go(func() error {
|
||||||
msgClient := msggateway.NewMsgGatewayClient(conn)
|
msgClient := msggateway.NewMsgGatewayClient(conn)
|
||||||
reply, err := msgClient.SuperGroupOnlineBatchPushOneMsg(ctx, input)
|
reply, err := msgClient.SuperGroupOnlineBatchPushOneMsg(ctx, input)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.ZError(ctx, "SuperGroupOnlineBatchPushOneMsg ", err, "req:", input.String())
|
log.ZError(ctx, "SuperGroupOnlineBatchPushOneMsg ", err, input.String())
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user