Skip to content

Commit f524af6

Browse files
authored
Update config.go
修改db不生效bug
1 parent c482704 commit f524af6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

utils/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func LoadConfig(fileName string) Config {
5353
redis := conf.Section("redis")
5454
host := redis.Key("host").String()
5555
port := redis.Key("port").String()
56-
database, _ := delayer.Key("database").Int()
56+
database, _ := redis.Key("database").Int()
5757
password := redis.Key("password").String()
5858
maxIdle, _ := delayer.Key("max_idle").Int()
5959
maxActive, _ := delayer.Key("max_active").Int()

0 commit comments

Comments
 (0)