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

Method badConnError

internal/pool/pool_sticky.go:179–186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177}
178
179func (p *StickyConnPool) badConnError() error {
180 if v := p._badConnError.Load(); v != nil {
181 if err := v.(BadConnError); err.wrapped != nil {
182 return err
183 }
184 }
185 return nil
186}
187
188func (p *StickyConnPool) Len() int {
189 switch atomic.LoadUint32(&p.state) {

Callers 3

GetMethod · 0.95
freeConnMethod · 0.95
ResetMethod · 0.95

Calls 1

LoadMethod · 0.45

Tested by

no test coverage detected