Skip to content

Commit 8873df0

Browse files
committed
fix: jsonRespository.DoCache does not hang when redisjson module is not
installed
1 parent ab9f3fc commit 8873df0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ func (c *dedicatedSingleClient) release() {
248248
}
249249

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

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

0 commit comments

Comments
 (0)