Skip to content

Commit 6bc7238

Browse files
cxljsndyakov
andauthored
Fix the ReplicaOnly option does not take effect when using NewFailoverClusterClient (#3482)
Signed-off-by: Xiaolong Chen <[email protected]> Co-authored-by: Nedyalko Dyakov <[email protected]>
1 parent bb94ac7 commit 6bc7238

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sentinel.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ func (opt *FailoverOptions) clusterOptions() *ClusterOptions {
245245

246246
MaxRedirects: opt.MaxRetries,
247247

248+
ReadOnly: opt.ReplicaOnly,
248249
RouteByLatency: opt.RouteByLatency,
249250
RouteRandomly: opt.RouteRandomly,
250251

0 commit comments

Comments
 (0)