IsHandoffPending returns true if the given connection has a pending handoff
(conn *pool.Conn)
| 91 | |
| 92 | // IsHandoffPending returns true if the given connection has a pending handoff |
| 93 | func (ph *PoolHook) IsHandoffPending(conn *pool.Conn) bool { |
| 94 | return ph.workerManager.isHandoffPending(conn) |
| 95 | } |
| 96 | |
| 97 | // GetPendingMap returns the pending map for testing purposes |
| 98 | func (ph *PoolHook) GetPendingMap() *sync.Map { |