bugfix: judge: redis conn pools

This commit is contained in:
UlricQin 2021-02-07 17:07:00 +08:00
parent 05819497e4
commit 417a13c1be
2 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
# release version
version=3.6.0
version=3.6.1
CWD=$(cd $(dirname $0)/; pwd)
cd $CWD

View File

@ -39,7 +39,8 @@ func Init(cfg RedisSection) {
connTimeout := time.Duration(cfg.Timeout.Conn) * time.Millisecond
readTimeout := time.Duration(cfg.Timeout.Read) * time.Millisecond
writeTimeout := time.Duration(cfg.Timeout.Write) * time.Millisecond
for _, addr := range addrs {
for i := range addrs {
addr := addrs[i]
redisConnPool := &redis.Pool{
MaxIdle: maxIdle,
IdleTimeout: idleTimeout,