redis/internal/pool
Yuxuan 'fishy' Wang 4f70db6849 Use atomic.Value instead of lock for ConnPool.lastDialError
This makes the reading and writing of lastDialError from the pool
faster, as atomic.Value is much more lightweight than the mutex.

Note that using error in atomic.Value directly could cause panics,
because errors could have inconsistent types. Thus wrap them with a
simple struct.
2020-07-14 11:25:59 -07:00
..
bench_test.go Bump major version 2020-05-19 08:52:38 +03:00
conn.go Add RecordError 2020-07-09 10:39:46 +03:00
export_test.go Fix MinIdleConns and MaxConnAge 2019-03-25 13:02:31 +02:00
main_test.go Pass context to Dialer 2019-06-04 14:26:26 +03:00
pool.go Use atomic.Value instead of lock for ConnPool.lastDialError 2020-07-14 11:25:59 -07:00
pool_single.go internal/pool: include details when conn is in a bad state 2019-09-13 16:52:05 +03:00
pool_sticky.go Retry BadConnError 2019-08-08 11:44:55 +03:00
pool_test.go Bump major version 2020-05-19 08:52:38 +03:00