mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
Bound connection pool background dials to configured dial timeout (#3089)
This commit is contained in:
@ -33,6 +33,7 @@ func BenchmarkPoolGetPut(b *testing.B) {
|
||||
Dialer: dummyDialer,
|
||||
PoolSize: bm.poolSize,
|
||||
PoolTimeout: time.Second,
|
||||
DialTimeout: 1 * time.Second,
|
||||
ConnMaxIdleTime: time.Hour,
|
||||
})
|
||||
|
||||
@ -76,6 +77,7 @@ func BenchmarkPoolGetRemove(b *testing.B) {
|
||||
Dialer: dummyDialer,
|
||||
PoolSize: bm.poolSize,
|
||||
PoolTimeout: time.Second,
|
||||
DialTimeout: 1 * time.Second,
|
||||
ConnMaxIdleTime: time.Hour,
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user