Make pop_closed pub, to simplify DIY drains

Includes-commit: 069a792c91
Replicated-from: https://github.com/cloudflare/pingora/pull/209
Signed-off-by: Benjamin Leggett <benjamin.leggett@solo.io>
This commit is contained in:
Benjamin Leggett 2024-04-17 20:57:44 +00:00 committed by Yuchen Wu
parent 6229cc555c
commit b493ac0c95
2 changed files with 2 additions and 2 deletions

2
.bleep
View file

@ -1 +1 @@
547ccfbe180fd88e07d229c771fa66479eaabedb
64c5e3fa4a538348e25a1ac5fe18245fc6d1eefc

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);