diff --git a/cluster.go b/cluster.go index e5e1475..86d0d5a 100644 --- a/cluster.go +++ b/cluster.go @@ -86,7 +86,7 @@ func (c *ClusterClient) process(cmd Cmder) { tried := make(map[string]struct{}, len(c.addrs)) addr := c.getMasterAddrBySlot(hashSlot) - for attempt := 0; attempt < c.opt.getMaxRedirects(); attempt++ { + for attempt := 0; attempt <= c.opt.getMaxRedirects(); attempt++ { tried[addr] = struct{}{} // Pick the connection, process request