From 2e620a6e1be99b71f54d30a2fe0d223328d035ac Mon Sep 17 00:00:00 2001 From: Mariano Pinto Date: Wed, 22 Nov 2023 09:46:27 +0000 Subject: [PATCH] strip context from publish call --- pubsub.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pubsub.go b/pubsub.go index 22fd291..6be9dce 100644 --- a/pubsub.go +++ b/pubsub.go @@ -41,7 +41,8 @@ func (ps *PubSub) Publisher(config map[string]interface{}) *pubsub.Client { return client } -func (ps *PubSub) Publish(ctx context.Context, p *pubsub.Client, topic, msg string) error { +func (ps *PubSub) Publish(p *pubsub.Client, topic, msg string) error { + ctx := context.Background() t := p.Topic(topic) r := t.Publish( ctx,