RemoveWithoutTurn has the same behavior as Remove for StickyConnPool since StickyConnPool doesn't use a turn-based queue system.
(ctx context.Context, cn *Conn, reason error)
| 126 | // RemoveWithoutTurn has the same behavior as Remove for StickyConnPool |
| 127 | // since StickyConnPool doesn't use a turn-based queue system. |
| 128 | func (p *StickyConnPool) RemoveWithoutTurn(ctx context.Context, cn *Conn, reason error) { |
| 129 | p.Remove(ctx, cn, reason) |
| 130 | } |
| 131 | |
| 132 | func (p *StickyConnPool) Close() error { |
| 133 | if shared := atomic.AddInt32(&p.shared, -1); shared > 0 { |