From 40ea5ab0ee862faa507bf654cb383f3da3df86b6 Mon Sep 17 00:00:00 2001 From: Victor Vrantchan Date: Fri, 26 May 2017 18:13:01 -0400 Subject: [PATCH] use context.TODO instead of nil context (#169) according to the library docs, a nil context should never be passed context.TODO() returns an empty context value instead: https://golang.org/pkg/context/ --- push/service.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/push/service.go b/push/service.go index 951054bb..e3c63139 100644 --- a/push/service.go +++ b/push/service.go @@ -40,10 +40,12 @@ func (svc *Push) startQueuedSubscriber(push *push.Service, sub pubsub.Subscriber cq, err := queue.UnmarshalQueuedCommand(event.Message) if err != nil { fmt.Println(err) + continue } - _, err = svc.Push(nil, cq.DeviceUDID) + _, err = svc.Push(context.TODO(), cq.DeviceUDID) if err != nil { fmt.Println(err) + continue } } }