Skip to content

Commit ab9a9b2

Browse files
committed
support sentinel
1 parent d261838 commit ab9a9b2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sentinel.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ func (opt *FailoverOptions) sentinelOptions(addr string) *Options {
153153
ConnMaxLifetime: opt.ConnMaxLifetime,
154154

155155
TLSConfig: opt.TLSConfig,
156+
157+
DisableIndentity: opt.DisableIndentity,
158+
IdentitySuffix: opt.IdentitySuffix,
156159
}
157160
}
158161

@@ -190,6 +193,9 @@ func (opt *FailoverOptions) clusterOptions() *ClusterOptions {
190193
ConnMaxLifetime: opt.ConnMaxLifetime,
191194

192195
TLSConfig: opt.TLSConfig,
196+
197+
DisableIndentity: opt.DisableIndentity,
198+
IdentitySuffix: opt.IdentitySuffix,
193199
}
194200
}
195201

0 commit comments

Comments
 (0)