MustGet returns the Pool with the given id, or panics if it's not found.
(id PoolID)
| 216 | |
| 217 | // MustGet returns the Pool with the given id, or panics if it's not found. |
| 218 | func (m *Pools) MustGet(id PoolID) *Pool { |
| 219 | if p, ok := m.pools[id]; ok { |
| 220 | return p |
| 221 | } |
| 222 | panic(fmt.Errorf("Pool %v not found", id)) |
| 223 | } |
| 224 | |
| 225 | // ApplicationPool returns the application memory pool. |
| 226 | func (m *Pools) ApplicationPool() *Pool { |
no outgoing calls
no test coverage detected