You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Explicitly check for context errors because go-redis v9 does not respect
`context.Canceled` or `context.DeadlineExceeded` unless
`Options.ContextTimeoutEnabled` is set [^1] [^2], which we do not enable.
If the context is canceled or times out during `XRead()` and
there is no data to read, `XRead()` will **still** block until
the block timeout is reached and
return `redis.Nil` instead of the context error.
Without this check, the function would return `redis.Nil`,
potentially leading to unexpected errors for consumers.
With this change, we can also remove the check for no context error when
checking if the error returned by `XRead()` is retryable.
[^1]: redis/go-redis#2556
[^2]: redis/go-redis#2682
0 commit comments