isHandoffPending returns true if the given connection has a pending handoff
(conn *pool.Conn)
| 89 | |
| 90 | // isHandoffPending returns true if the given connection has a pending handoff |
| 91 | func (hwm *handoffWorkerManager) isHandoffPending(conn *pool.Conn) bool { |
| 92 | _, pending := hwm.pending.Load(conn.GetID()) |
| 93 | return pending |
| 94 | } |
| 95 | |
| 96 | // ensureWorkerAvailable ensures at least one worker is available to process requests |
| 97 | // Creates a new worker if needed and under the max limit |
no test coverage detected