mirror of https://github.com/go-redis/redis.git
typo: fix DisableIndentity -> DisableIdentity typo
This commit is contained in:
parent
b5a9e5d2c6
commit
f4abc731d8
|
@ -30,7 +30,7 @@ func NewClientStub(resp []byte) *ClientStub {
|
|||
Dialer: func(ctx context.Context, network, addr string) (net.Conn, error) {
|
||||
return stub.stubConn(initHello), nil
|
||||
},
|
||||
DisableIndentity: true,
|
||||
DisableIdentity: true,
|
||||
})
|
||||
return stub
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ func NewClusterClientStub(resp []byte) *ClientStub {
|
|||
Dialer: func(ctx context.Context, network, addr string) (net.Conn, error) {
|
||||
return stub.stubConn(initHello), nil
|
||||
},
|
||||
DisableIndentity: true,
|
||||
DisableIdentity: true,
|
||||
|
||||
ClusterSlots: func(_ context.Context) ([]ClusterSlot, error) {
|
||||
return []ClusterSlot{
|
||||
|
|
|
@ -143,7 +143,7 @@ type Options struct {
|
|||
readOnly bool
|
||||
|
||||
// Disable set-lib on connect. Default is false.
|
||||
DisableIndentity bool
|
||||
DisableIdentity bool
|
||||
|
||||
// Add suffix to client name. Default is empty.
|
||||
IdentitySuffix string
|
||||
|
|
|
@ -86,7 +86,7 @@ type ClusterOptions struct {
|
|||
ConnMaxLifetime time.Duration
|
||||
|
||||
TLSConfig *tls.Config
|
||||
DisableIndentity bool // Disable set-lib on connect. Default is false.
|
||||
DisableIdentity bool // Disable set-lib on connect. Default is false.
|
||||
|
||||
IdentitySuffix string // Add suffix to client name. Default is empty.
|
||||
}
|
||||
|
@ -294,7 +294,7 @@ func (opt *ClusterOptions) clientOptions() *Options {
|
|||
MaxActiveConns: opt.MaxActiveConns,
|
||||
ConnMaxIdleTime: opt.ConnMaxIdleTime,
|
||||
ConnMaxLifetime: opt.ConnMaxLifetime,
|
||||
DisableIndentity: opt.DisableIndentity,
|
||||
DisableIdentity: opt.DisableIdentity,
|
||||
IdentitySuffix: opt.IdentitySuffix,
|
||||
TLSConfig: opt.TLSConfig,
|
||||
// If ClusterSlots is populated, then we probably have an artificial
|
||||
|
|
2
redis.go
2
redis.go
|
@ -334,7 +334,7 @@ func (c *baseClient) initConn(ctx context.Context, cn *pool.Conn) error {
|
|||
pipe.ClientSetName(ctx, c.opt.ClientName)
|
||||
}
|
||||
|
||||
if !c.opt.DisableIndentity {
|
||||
if !c.opt.DisableIdentity {
|
||||
libName := ""
|
||||
libVer := Version()
|
||||
if c.opt.IdentitySuffix != "" {
|
||||
|
|
4
ring.go
4
ring.go
|
@ -98,7 +98,7 @@ type RingOptions struct {
|
|||
TLSConfig *tls.Config
|
||||
Limiter Limiter
|
||||
|
||||
DisableIndentity bool
|
||||
DisableIdentity bool
|
||||
IdentitySuffix string
|
||||
}
|
||||
|
||||
|
@ -166,7 +166,7 @@ func (opt *RingOptions) clientOptions() *Options {
|
|||
TLSConfig: opt.TLSConfig,
|
||||
Limiter: opt.Limiter,
|
||||
|
||||
DisableIndentity: opt.DisableIndentity,
|
||||
DisableIdentity: opt.DisableIdentity,
|
||||
IdentitySuffix: opt.IdentitySuffix,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -80,7 +80,7 @@ type FailoverOptions struct {
|
|||
|
||||
TLSConfig *tls.Config
|
||||
|
||||
DisableIndentity bool
|
||||
DisableIdentity bool
|
||||
IdentitySuffix string
|
||||
}
|
||||
|
||||
|
@ -117,7 +117,7 @@ func (opt *FailoverOptions) clientOptions() *Options {
|
|||
|
||||
TLSConfig: opt.TLSConfig,
|
||||
|
||||
DisableIndentity: opt.DisableIndentity,
|
||||
DisableIdentity: opt.DisableIdentity,
|
||||
IdentitySuffix: opt.IdentitySuffix,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -66,7 +66,7 @@ type UniversalOptions struct {
|
|||
|
||||
MasterName string
|
||||
|
||||
DisableIndentity bool
|
||||
DisableIdentity bool
|
||||
IdentitySuffix string
|
||||
}
|
||||
|
||||
|
@ -112,7 +112,7 @@ func (o *UniversalOptions) Cluster() *ClusterOptions {
|
|||
|
||||
TLSConfig: o.TLSConfig,
|
||||
|
||||
DisableIndentity: o.DisableIndentity,
|
||||
DisableIdentity: o.DisableIdentity,
|
||||
IdentitySuffix: o.IdentitySuffix,
|
||||
}
|
||||
}
|
||||
|
@ -158,7 +158,7 @@ func (o *UniversalOptions) Failover() *FailoverOptions {
|
|||
|
||||
TLSConfig: o.TLSConfig,
|
||||
|
||||
DisableIndentity: o.DisableIndentity,
|
||||
DisableIdentity: o.DisableIdentity,
|
||||
IdentitySuffix: o.IdentitySuffix,
|
||||
}
|
||||
}
|
||||
|
@ -201,7 +201,7 @@ func (o *UniversalOptions) Simple() *Options {
|
|||
|
||||
TLSConfig: o.TLSConfig,
|
||||
|
||||
DisableIndentity: o.DisableIndentity,
|
||||
DisableIdentity: o.DisableIdentity,
|
||||
IdentitySuffix: o.IdentitySuffix,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue