Skip to content

Commit

Permalink
更新
Browse files Browse the repository at this point in the history
  • Loading branch information
onanying committed Jun 13, 2019
1 parent f524af6 commit 6f13f24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
)

const (
APP_VERSION = "1.0.3"
APP_VERSION = "1.0.4"
)

// 命令类
Expand Down
8 changes: 4 additions & 4 deletions utils/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ func LoadConfig(fileName string) Config {
port := redis.Key("port").String()
database, _ := redis.Key("database").Int()
password := redis.Key("password").String()
maxIdle, _ := delayer.Key("max_idle").Int()
maxActive, _ := delayer.Key("max_active").Int()
idleTimeout, _ := delayer.Key("idle_timeout").Int64()
connMaxLifetime, _ := delayer.Key("conn_max_lifetime").Int64()
maxIdle, _ := redis.Key("max_idle").Int()
maxActive, _ := redis.Key("max_active").Int()
idleTimeout, _ := redis.Key("idle_timeout").Int64()
connMaxLifetime, _ := redis.Key("conn_max_lifetime").Int64()
// 返回
data := Config{
Delayer: Delayer{
Expand Down

0 comments on commit 6f13f24

Please sign in to comment.