Commit b80d9841 by huangchengyi

1.0

parent 41a95485
Showing with 3 additions and 2 deletions
...@@ -2,14 +2,14 @@ ...@@ -2,14 +2,14 @@
[default_redis_read] [default_redis_read]
host = 192.168.1.235:6379 host = 192.168.1.235:6379
password = icDb29mLy2s password = icDb29mLy2s
max_idle = 3000 max_idle = 1000
max_active = 5000 max_active = 5000
idle_timeout = 20 idle_timeout = 20
[default_redis_write] [default_redis_write]
host = 192.168.1.235:6379 host = 192.168.1.235:6379
password = icDb29mLy2s password = icDb29mLy2s
max_idle = 3000 max_idle = 1000
max_active = 5000 max_active = 5000
idle_timeout = 20 idle_timeout = 20
......
...@@ -60,6 +60,7 @@ func getConn(writeHost, password string, maxIdle, maxActive int) (pool *redis.Po ...@@ -60,6 +60,7 @@ func getConn(writeHost, password string, maxIdle, maxActive int) (pool *redis.Po
_, err := c.Do("PING") _, err := c.Do("PING")
return err return err
}, },
Wait: true,
} }
return return
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment