Skip to content

Commit

Permalink
修改auth
Browse files Browse the repository at this point in the history
  • Loading branch information
Kotodian committed May 17, 2023
1 parent 7219e59 commit d9fd4d1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions datasource/redis/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ func Init() {
if err != nil {
return nil, err
}
if len(auth) > 0 {
_, err = c.Do("auth", auth)
if err != nil {
return nil, err
}
}
// c = redis.NewLoggingConn(c, log.Default(), "redis")
return c, nil
},
Expand Down

0 comments on commit d9fd4d1

Please sign in to comment.