1
0
mirror of https://github.com/redis/go-redis.git synced 2025-04-17 20:17:02 +03:00
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
..
2020-06-29 17:51:47 +03:00
2020-06-12 10:09:32 +03:00
2018-08-17 14:14:02 +03:00
2020-03-30 17:02:17 +03:00
2017-07-01 12:51:46 +03:00
2020-06-09 17:17:41 +03:00
2020-06-09 17:17:41 +03:00
2020-07-09 11:00:23 +03:00