Skip to content

Commit

Permalink
batch push
Browse files Browse the repository at this point in the history
  • Loading branch information
withchao committed Jul 22, 2024
1 parent 9827ab6 commit 2e7a4e0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions internal/msggateway/hub_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,19 +156,13 @@ func (s *Server) pushToUser(ctx context.Context, userID string, msgData *sdkws.M
err := client.PushMessage(ctx, msgData)
if err != nil {
userPlatform.ResultCode = int64(servererrs.ErrPushMsgErr.Code())
//result.Resp = append(result.Resp, userPlatform)
//resp = append(resp, userPlatform)
} else {
if _, ok := s.pushTerminal[client.PlatformID]; ok {
result.OnlinePush = true
//result.Resp = append(result.Resp, userPlatform)
//results.OnlinePush = true
//resp = append(resp, userPlatform)
}
}
} else {
userPlatform.ResultCode = int64(servererrs.ErrIOSBackgroundPushErr.Code())
//resp = append(resp, userPlatform)
}
result.Resp = append(result.Resp, userPlatform)
}
Expand Down

0 comments on commit 2e7a4e0

Please sign in to comment.