Skip to content

Commit 82b3deb

Browse files
committed
Fix the ReplicaOnly option does not take effect when using NewFailoverClusterClient
Signed-off-by: Xiaolong Chen <[email protected]>
1 parent 9781710 commit 82b3deb

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)