Skip to content

Commit 0cfcd1a

Browse files
authored
update pubsub.go (#3329)
1 parent 53daf77 commit 0cfcd1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pubsub.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ func (c *PubSub) ReceiveTimeout(ctx context.Context, timeout time.Duration) (int
432432
return nil, err
433433
}
434434

435-
err = cn.WithReader(context.Background(), timeout, func(rd *proto.Reader) error {
435+
err = cn.WithReader(ctx, timeout, func(rd *proto.Reader) error {
436436
return c.cmd.readReply(rd)
437437
})
438438

0 commit comments

Comments
 (0)