Skip to content

Commit

Permalink
fix: jsonRespository.DoCache does not hang when redisjson module is n…
Browse files Browse the repository at this point in the history
…ot (#594)

installed
  • Loading branch information
ajayd-san authored Jul 27, 2024
1 parent 53f92e1 commit 2d299e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func (c *dedicatedSingleClient) release() {
}

func (c *singleClient) isRetryable(err error, ctx context.Context) bool {
return err != nil && atomic.LoadUint32(&c.stop) == 0 && ctx.Err() == nil
return err != nil && err != ErrDoCacheAborted && atomic.LoadUint32(&c.stop) == 0 && ctx.Err() == nil
}

func isRetryable(err error, w wire, ctx context.Context) bool {
Expand Down

0 comments on commit 2d299e6

Please sign in to comment.