mirror of
https://github.com/redis/go-redis.git
synced 2025-04-14 22:04:09 +03:00
update pubsub.go (#3329)
This commit is contained in:
parent
53daf77e1a
commit
0cfcd1a61d
@ -432,7 +432,7 @@ func (c *PubSub) ReceiveTimeout(ctx context.Context, timeout time.Duration) (int
|
||||
return nil, err
|
||||
}
|
||||
|
||||
err = cn.WithReader(context.Background(), timeout, func(rd *proto.Reader) error {
|
||||
err = cn.WithReader(ctx, timeout, func(rd *proto.Reader) error {
|
||||
return c.cmd.readReply(rd)
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user