bugfix: judge: redis conn pools
This commit is contained in:
parent
05819497e4
commit
417a13c1be
2
control
2
control
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# release version
|
# release version
|
||||||
version=3.6.0
|
version=3.6.1
|
||||||
|
|
||||||
CWD=$(cd $(dirname $0)/; pwd)
|
CWD=$(cd $(dirname $0)/; pwd)
|
||||||
cd $CWD
|
cd $CWD
|
||||||
|
|
|
@ -39,7 +39,8 @@ func Init(cfg RedisSection) {
|
||||||
connTimeout := time.Duration(cfg.Timeout.Conn) * time.Millisecond
|
connTimeout := time.Duration(cfg.Timeout.Conn) * time.Millisecond
|
||||||
readTimeout := time.Duration(cfg.Timeout.Read) * time.Millisecond
|
readTimeout := time.Duration(cfg.Timeout.Read) * time.Millisecond
|
||||||
writeTimeout := time.Duration(cfg.Timeout.Write) * time.Millisecond
|
writeTimeout := time.Duration(cfg.Timeout.Write) * time.Millisecond
|
||||||
for _, addr := range addrs {
|
for i := range addrs {
|
||||||
|
addr := addrs[i]
|
||||||
redisConnPool := &redis.Pool{
|
redisConnPool := &redis.Pool{
|
||||||
MaxIdle: maxIdle,
|
MaxIdle: maxIdle,
|
||||||
IdleTimeout: idleTimeout,
|
IdleTimeout: idleTimeout,
|
||||||
|
|
Loading…
Reference in New Issue