Skip to content

Commit 78be750

Browse files
committed
add errors to cmds in pipeline if about to be returned
1 parent aee5c0a commit 78be750

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

redis.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,7 @@ func (c *baseClient) generalProcessPipeline(
630630
return err
631631
})
632632
if lastErr == nil || !canRetry || !shouldRetry(lastErr, true) {
633+
setCmdsErr(cmds, lastErr)
633634
return lastErr
634635
}
635636
}

0 commit comments

Comments
 (0)