redis/internal
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
..
hashtag Tweak auto-reloads 2020-06-29 17:51:47 +03:00
pool Use atomic.Value instead of lock for ConnPool.lastDialError 2020-07-14 11:25:59 -07:00
proto Remove io.StringWriter 2020-06-12 10:09:32 +03:00
util Use bufio.Writer 2018-08-17 14:14:02 +03:00
internal.go Use random node to load cluster slots 2020-06-29 17:26:11 +03:00
internal_test.go Close connections to unused nodes 2017-07-11 11:19:40 +03:00
log.go issue-1279 update logging 2020-03-30 17:02:17 +03:00
once.go Vendor syncutil.Once 2017-07-01 12:51:46 +03:00
safe.go Add OpenTelemetryHook 2020-06-09 17:17:41 +03:00
unsafe.go Add OpenTelemetryHook 2020-06-09 17:17:41 +03:00
util.go Don't record proto.Nil 2020-07-09 11:00:23 +03:00