Merge pull request #400 from yyoshiki41/refactor/cluster

simplify if condition
This commit is contained in:
Vladimir Mihailenco 2016-10-13 12:10:37 +03:00 committed by GitHub
commit 21cae7f9ab
1 changed files with 3 additions and 1 deletions

View File

@ -653,7 +653,9 @@ func (c *ClusterClient) execClusterCmds(
cmd.reset()
failedCmds[nil] = append(failedCmds[nil], cmds[i:]...)
break
} else if moved, ask, addr := internal.IsMovedError(err); moved {
}
moved, ask, addr := internal.IsMovedError(err)
if moved {
c.lazyReloadSlots()
cmd.reset()
node, err := c.nodeByAddr(addr)