diff --git a/cluster.go b/cluster.go index d8cd1d6b..2ce475c4 100644 --- a/cluster.go +++ b/cluster.go @@ -1639,7 +1639,7 @@ func (c *ClusterClient) cmdNode( return nil, err } - if (c.opt.RouteByLatency || c.opt.RouteRandomly) && cmdInfo != nil && cmdInfo.ReadOnly { + if c.opt.ReadOnly && cmdInfo != nil && cmdInfo.ReadOnly { return c.slotReadOnlyNode(state, slot) } return state.slotMasterNode(slot)