Make pop_closed pub, to simplify DIY drains

Signed-off-by: Benjamin Leggett <benjamin.leggett@solo.io>
This commit is contained in:
Benjamin Leggett 2024-04-17 16:57:44 -04:00
parent 7ce6f4ac1c
commit 069a792c91
No known key found for this signature in database
GPG key ID: 00D8A43FDE107E80

View file

@ -215,7 +215,7 @@ impl<S> ConnectionPool<S> {
debug!("evict fd: {} from key {}", meta.id, meta.key);
}
fn pop_closed(&self, meta: &ConnectionMeta) {
pub fn pop_closed(&self, meta: &ConnectionMeta) {
// NOTE: which of these should be done first?
self.pop_evicted(meta);
self.lru.pop(&meta.id);