Skip to content

Commit

Permalink
修复笔误DialDatabase
Browse files Browse the repository at this point in the history
  • Loading branch information
azhai committed May 16, 2022
1 parent 515e6ef commit 43ec079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redisw/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func NewRedisConnDb(cfg dialect.ConnConfig, db int) (redis.Conn, error) {
opts = append(opts, redis.DialPassword(cfg.Password))
}
if db >= 0 {
opts = append(opts, redis.Database(db))
opts = append(opts, redis.DialDatabase(db))
}
return redis.DialURL(cfg.GetDSN(false), opts...)
}
Expand Down

0 comments on commit 43ec079

Please sign in to comment.