mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-04 11:22:17 +08:00
fix:fix go routine values error
This commit is contained in:
parent
09ce43e0a4
commit
98339fa657
@ -361,9 +361,11 @@ func (p *Pusher) k8sOnlinePush(ctx context.Context, msg *sdkws.MsgData, pushToUs
|
|||||||
}
|
}
|
||||||
wg.SetLimit(maxWorkers)
|
wg.SetLimit(maxWorkers)
|
||||||
for conn, userIds := range usersConns {
|
for conn, userIds := range usersConns {
|
||||||
|
tcon := conn
|
||||||
|
tuserIds := userIds
|
||||||
wg.Go(func() error {
|
wg.Go(func() error {
|
||||||
input := &msggateway.OnlineBatchPushOneMsgReq{MsgData: msg, PushToUserIDs: userIds}
|
input := &msggateway.OnlineBatchPushOneMsgReq{MsgData: msg, PushToUserIDs: tuserIds}
|
||||||
msgClient := msggateway.NewMsgGatewayClient(conn)
|
msgClient := msggateway.NewMsgGatewayClient(tcon)
|
||||||
reply, err := msgClient.SuperGroupOnlineBatchPushOneMsg(ctx, input)
|
reply, err := msgClient.SuperGroupOnlineBatchPushOneMsg(ctx, input)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user