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

Method closeConn

internal/pool/pool.go:1531–1533  ·  view source on GitHub ↗
(cn *Conn)

Source from the content-addressed store, hash-verified

1529}
1530
1531func (p *ConnPool) closeConn(cn *Conn) error {
1532 return cn.Close()
1533}
1534
1535// Len returns total number of connections.
1536func (p *ConnPool) Len() int {

Callers 8

putConnMethod · 0.95
removeConnInternalMethod · 0.95
CloseConnMethod · 0.95
RetireConnsMethod · 0.95
FilterMethod · 0.95
CloseMethod · 0.95
connMethod · 0.80
closeTheCnMethod · 0.80

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected