UnregisterPools removes connection pools from the global recorder
(connPool pool.Pooler, pubSubPool PubSubPooler)
| 286 | |
| 287 | // UnregisterPools removes connection pools from the global recorder |
| 288 | func UnregisterPools(connPool pool.Pooler, pubSubPool PubSubPooler) { |
| 289 | // Check if the global recorder implements PoolRegistrar |
| 290 | if registrar, ok := globalRecorder.(PoolRegistrar); ok { |
| 291 | if connPool != nil { |
| 292 | registrar.UnregisterPool(connPool) |
| 293 | } |
| 294 | if pubSubPool != nil { |
| 295 | registrar.UnregisterPubSubPool(pubSubPool) |
| 296 | } |
| 297 | } |
| 298 | } |
no test coverage detected