Skip to content

Commit

Permalink
Update pubsub.go (#3042)
Browse files Browse the repository at this point in the history
Change context.Background() to ctx
  • Loading branch information
immersedin authored Jul 5, 2024
1 parent 4cf03db commit 26e0c49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (c *PubSub) conn(ctx context.Context, newChannels []string) (*pool.Conn, er
}

func (c *PubSub) writeCmd(ctx context.Context, cn *pool.Conn, cmd Cmder) error {
return cn.WithWriter(context.Background(), c.opt.WriteTimeout, func(wr *proto.Writer) error {
return cn.WithWriter(ctx, c.opt.WriteTimeout, func(wr *proto.Writer) error {
return writeCmd(wr, cmd)
})
}
Expand Down

0 comments on commit 26e0c49

Please sign in to comment.