1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

sync v8.11.0

This commit is contained in:
monkey92t
2021-07-02 20:56:25 +08:00
committed by GitHub
parent 63df0e5e75
commit 916da5b2ce
15 changed files with 50 additions and 92 deletions

View File

@ -91,7 +91,7 @@ func (opt *ClusterOptions) init() {
}
if opt.PoolSize == 0 {
opt.PoolSize = 5 * runtime.NumCPU()
opt.PoolSize = 5 * runtime.GOMAXPROCS(0)
}
switch opt.ReadTimeout {