mirror of
https://github.com/redis/go-redis.git
synced 2025-07-20 22:42:59 +03:00
update documentation
This commit is contained in:
2
redis.go
2
redis.go
@ -336,7 +336,7 @@ func (c *baseClient) initConn(ctx context.Context, cn *pool.Conn) error {
|
||||
}
|
||||
|
||||
if !authenticated && password != "" {
|
||||
err = c.reAuth(ctx, conn, auth.NewCredentials(username, password))
|
||||
err = c.reAuth(ctx, conn, auth.NewBasicCredentials(username, password))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user