fix: forward DisableIdentity and IdentitySuffix in sentinelOptions and clusterOptions

This commit is contained in:
Benjamin Ziehms 2024-02-20 14:37:00 +00:00
parent f4abc731d8
commit 3009c8fcb1
No known key found for this signature in database
GPG Key ID: B026BCF18E3A2821
1 changed files with 6 additions and 0 deletions

View File

@ -153,6 +153,9 @@ func (opt *FailoverOptions) sentinelOptions(addr string) *Options {
ConnMaxLifetime: opt.ConnMaxLifetime, ConnMaxLifetime: opt.ConnMaxLifetime,
TLSConfig: opt.TLSConfig, TLSConfig: opt.TLSConfig,
DisableIdentity: opt.DisableIdentity,
IdentitySuffix: opt.IdentitySuffix,
} }
} }
@ -190,6 +193,9 @@ func (opt *FailoverOptions) clusterOptions() *ClusterOptions {
ConnMaxLifetime: opt.ConnMaxLifetime, ConnMaxLifetime: opt.ConnMaxLifetime,
TLSConfig: opt.TLSConfig, TLSConfig: opt.TLSConfig,
DisableIdentity: opt.DisableIdentity,
IdentitySuffix: opt.IdentitySuffix,
} }
} }