Only initial MaxConcurrentIOSPushes once. (#591)
This commit is contained in:
@@ -56,6 +56,7 @@ func (s *Server) Check(ctx context.Context, in *proto.HealthCheckRequest) (*prot
|
||||
func (s *Server) Send(ctx context.Context, in *proto.NotificationRequest) (*proto.NotificationReply, error) {
|
||||
badge := int(in.Badge)
|
||||
notification := gorush.PushNotification{
|
||||
Cfg: s.cfg,
|
||||
Platform: int(in.Platform),
|
||||
Tokens: in.Tokens,
|
||||
Message: in.Message,
|
||||
@@ -101,7 +102,7 @@ func (s *Server) Send(ctx context.Context, in *proto.NotificationRequest) (*prot
|
||||
}
|
||||
}
|
||||
|
||||
go gorush.SendNotification(s.cfg, notification)
|
||||
go gorush.SendNotification(notification)
|
||||
|
||||
return &proto.NotificationReply{
|
||||
Success: true,
|
||||
|
||||
Reference in New Issue
Block a user