From 3009c8fcb1df4aab7002f7cdd766f7b1b4651c86 Mon Sep 17 00:00:00 2001 From: Benjamin Ziehms Date: Tue, 20 Feb 2024 14:37:00 +0000 Subject: [PATCH] fix: forward DisableIdentity and IdentitySuffix in sentinelOptions and clusterOptions --- sentinel.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sentinel.go b/sentinel.go index 4d90e1c7..fa124b0d 100644 --- a/sentinel.go +++ b/sentinel.go @@ -153,6 +153,9 @@ func (opt *FailoverOptions) sentinelOptions(addr string) *Options { ConnMaxLifetime: opt.ConnMaxLifetime, TLSConfig: opt.TLSConfig, + + DisableIdentity: opt.DisableIdentity, + IdentitySuffix: opt.IdentitySuffix, } } @@ -190,6 +193,9 @@ func (opt *FailoverOptions) clusterOptions() *ClusterOptions { ConnMaxLifetime: opt.ConnMaxLifetime, TLSConfig: opt.TLSConfig, + + DisableIdentity: opt.DisableIdentity, + IdentitySuffix: opt.IdentitySuffix, } }