Skip to content

Commit e8b59be

Browse files
liushuanglsndyakov
authored andcommitted
update pubsub.go (#3329)
1 parent 5af8889 commit e8b59be

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)