From 069a792c91c19b1ad01b2a151a74242aec901ce6 Mon Sep 17 00:00:00 2001 From: Benjamin Leggett Date: Wed, 17 Apr 2024 16:57:44 -0400 Subject: [PATCH] Make `pop_closed` pub, to simplify DIY drains Signed-off-by: Benjamin Leggett --- pingora-pool/src/connection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pingora-pool/src/connection.rs b/pingora-pool/src/connection.rs index 183e70a..e5a9655 100644 --- a/pingora-pool/src/connection.rs +++ b/pingora-pool/src/connection.rs @@ -215,7 +215,7 @@ impl ConnectionPool { 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);