mirror of
https://github.com/redis/go-redis.git
synced 2025-10-29 05:29:22 +03:00
Fix the ReplicaOnly option does not take effect when using NewFailoverClusterClient (#3482)
Signed-off-by: Xiaolong Chen <fukua95@gmail.com> Co-authored-by: Nedyalko Dyakov <1547186+ndyakov@users.noreply.github.com>
This commit is contained in:
@@ -245,6 +245,7 @@ func (opt *FailoverOptions) clusterOptions() *ClusterOptions {
|
||||
|
||||
MaxRedirects: opt.MaxRetries,
|
||||
|
||||
ReadOnly: opt.ReplicaOnly,
|
||||
RouteByLatency: opt.RouteByLatency,
|
||||
RouteRandomly: opt.RouteRandomly,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user