(ctx context.Context, conn *pool.Conn, reason error)
| 68 | } |
| 69 | |
| 70 | func (mp *mockPool) Remove(ctx context.Context, conn *pool.Conn, reason error) { |
| 71 | mp.mu.Lock() |
| 72 | defer mp.mu.Unlock() |
| 73 | |
| 74 | // Use pool.Conn directly - no adapter needed |
| 75 | mp.removedConnections[conn.GetID()] = true |
| 76 | } |
| 77 | |
| 78 | func (mp *mockPool) RemoveWithoutTurn(ctx context.Context, conn *pool.Conn, reason error) { |
| 79 | // For mock pool, same behavior as Remove since we don't have a turn-based queue |
no test coverage detected