mirror of
https://github.com/redis/go-redis.git
synced 2025-06-12 14:21:52 +03:00
Add auto-retry and MaxRetries option. Fixes #84.
This commit is contained in:
@ -47,6 +47,12 @@ func setCmdsErr(cmds []Cmder, e error) {
|
||||
}
|
||||
}
|
||||
|
||||
func resetCmds(cmds []Cmder) {
|
||||
for _, cmd := range cmds {
|
||||
cmd.reset()
|
||||
}
|
||||
}
|
||||
|
||||
func cmdString(cmd Cmder, val interface{}) string {
|
||||
s := strings.Join(cmd.args(), " ")
|
||||
if err := cmd.Err(); err != nil {
|
||||
|
Reference in New Issue
Block a user