@@ -61,7 +61,6 @@ type Credential struct {
61
61
type ClientOptions struct {
62
62
AppName * string
63
63
Auth * Credential
64
- AuthenticateArbiter * bool
65
64
ConnectTimeout * time.Duration
66
65
Compressors []string
67
66
Dialer ContextDialer
@@ -84,6 +83,10 @@ type ClientOptions struct {
84
83
ZlibLevel * int
85
84
86
85
err error
86
+
87
+ // Adds an option for internal use only and should not be set. This option is deprecated and is
88
+ // not part of the stability guarantee. It may be removed in the future.
89
+ AuthenticateToAnything * bool
87
90
}
88
91
89
92
// Client creates a new ClientOptions instance.
@@ -288,13 +291,6 @@ func (c *ClientOptions) SetCompressors(comps []string) *ClientOptions {
288
291
return c
289
292
}
290
293
291
- // SetAuthenticateArbiter specifies whether or not the driver should authenticate arbiters. By
292
- // default, they are not authenticated.
293
- func (c * ClientOptions ) SetAuthenticateArbiter (b bool ) * ClientOptions {
294
- c .AuthenticateArbiter = & b
295
- return c
296
- }
297
-
298
294
// SetConnectTimeout specifies the timeout for an initial connection to a server.
299
295
// If a custom Dialer is used, this method won't be set and the user is
300
296
// responsible for setting the ConnectTimeout for connections on the dialer
@@ -443,8 +439,8 @@ func MergeClientOptions(opts ...*ClientOptions) *ClientOptions {
443
439
if opt .Auth != nil {
444
440
c .Auth = opt .Auth
445
441
}
446
- if opt .AuthenticateArbiter != nil {
447
- c .AuthenticateArbiter = opt .AuthenticateArbiter
442
+ if opt .AuthenticateToAnything != nil {
443
+ c .AuthenticateToAnything = opt .AuthenticateToAnything
448
444
}
449
445
if opt .Compressors != nil {
450
446
c .Compressors = opt .Compressors
0 commit comments