Skip to content

Commit

Permalink
strip context from publish call
Browse files Browse the repository at this point in the history
  • Loading branch information
marianopinto committed Nov 22, 2023
1 parent 8f84439 commit 2e620a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2e620a6

Please sign in to comment.