Skip to content

Commit 3c1ca57

Browse files
authored
add readOnly on failover opts
add failover that if is True it connects to slaves
1 parent c29d399 commit 3c1ca57

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

universal.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ func (o *UniversalOptions) Failover() *FailoverOptions {
160160

161161
TLSConfig: o.TLSConfig,
162162

163+
ReplicaOnly: o.ReadOnly,
164+
163165
DisableIndentity: o.DisableIndentity,
164166
IdentitySuffix: o.IdentitySuffix,
165167
UnstableResp3: o.UnstableResp3,

0 commit comments

Comments
 (0)