MCPcopy
hub / github.com/redis/go-redis / setLastDialError

Method setLastDialError

internal/pool/pool.go:798–800  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

796}
797
798func (p *ConnPool) setLastDialError(err error) {
799 p.lastDialError.Store(&lastDialErrorWrap{err: err})
800}
801
802func (p *ConnPool) getLastDialError() error {
803 err, _ := p.lastDialError.Load().(*lastDialErrorWrap)

Callers 2

dialConnMethod · 0.95
tryDialMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected