1
0
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:
cxljs
2025-09-01 15:09:32 +08:00
committed by GitHub
parent bb94ac7898
commit 6bc7238340

View File

@@ -245,6 +245,7 @@ func (opt *FailoverOptions) clusterOptions() *ClusterOptions {
MaxRedirects: opt.MaxRetries, MaxRedirects: opt.MaxRetries,
ReadOnly: opt.ReplicaOnly,
RouteByLatency: opt.RouteByLatency, RouteByLatency: opt.RouteByLatency,
RouteRandomly: opt.RouteRandomly, RouteRandomly: opt.RouteRandomly,