diff --git a/sentinel.go b/sentinel.go index 819ec192..e4c9d834 100644 --- a/sentinel.go +++ b/sentinel.go @@ -245,6 +245,7 @@ func (opt *FailoverOptions) clusterOptions() *ClusterOptions { MaxRedirects: opt.MaxRetries, + ReadOnly: opt.ReplicaOnly, RouteByLatency: opt.RouteByLatency, RouteRandomly: opt.RouteRandomly,