(ctx context.Context, cn *Conn)
| 106 | } |
| 107 | |
| 108 | func (p *StickyConnPool) freeConn(ctx context.Context, cn *Conn) { |
| 109 | if err := p.badConnError(); err != nil { |
| 110 | p.pool.Remove(ctx, cn, err) |
| 111 | } else { |
| 112 | p.pool.Put(ctx, cn) |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | func (p *StickyConnPool) Remove(ctx context.Context, cn *Conn, reason error) { |
| 117 | defer func() { |
no test coverage detected