mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
GOMAXPROCS usage instead of NumCPU (#1801)
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user