use context.Background() in eventhubs subscriber
This commit is contained in:
parent
7ea3800afd
commit
d62e2a9e84
|
|
@ -141,7 +141,7 @@ func (aeh *AzureEventHubs) Subscribe(req pubsub.SubscribeRequest, handler pubsub
|
|||
|
||||
_, err = processor.RegisterHandler(context.Background(),
|
||||
func(c context.Context, e *eventhub.Event) error {
|
||||
return handler(nil, &pubsub.NewMessage{Data: e.Data, Topic: req.Topic})
|
||||
return handler(context.Background(), &pubsub.NewMessage{Data: e.Data, Topic: req.Topic})
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
|||
Loading…
Reference in New Issue