From b493ac0c954c5537dadefc71458f7a9c2efacab3 Mon Sep 17 00:00:00 2001 From: Benjamin Leggett Date: Wed, 17 Apr 2024 20:57:44 +0000 Subject: [PATCH] Make `pop_closed` pub, to simplify DIY drains Includes-commit: 069a792c91c19b1ad01b2a151a74242aec901ce6 Replicated-from: https://github.com/cloudflare/pingora/pull/209 Signed-off-by: Benjamin Leggett --- .bleep | 2 +- pingora-pool/src/connection.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.bleep b/.bleep index a3caa84..85bf804 100644 --- a/.bleep +++ b/.bleep @@ -1 +1 @@ -547ccfbe180fd88e07d229c771fa66479eaabedb \ No newline at end of file +64c5e3fa4a538348e25a1ac5fe18245fc6d1eefc \ No newline at end of file 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);