forked from mirror/redis
Merge pull request #400 from yyoshiki41/refactor/cluster
simplify if condition
This commit is contained in:
commit
21cae7f9ab
|
@ -653,7 +653,9 @@ func (c *ClusterClient) execClusterCmds(
|
||||||
cmd.reset()
|
cmd.reset()
|
||||||
failedCmds[nil] = append(failedCmds[nil], cmds[i:]...)
|
failedCmds[nil] = append(failedCmds[nil], cmds[i:]...)
|
||||||
break
|
break
|
||||||
} else if moved, ask, addr := internal.IsMovedError(err); moved {
|
}
|
||||||
|
moved, ask, addr := internal.IsMovedError(err)
|
||||||
|
if moved {
|
||||||
c.lazyReloadSlots()
|
c.lazyReloadSlots()
|
||||||
cmd.reset()
|
cmd.reset()
|
||||||
node, err := c.nodeByAddr(addr)
|
node, err := c.nodeByAddr(addr)
|
||||||
|
|
Loading…
Reference in New Issue