Skip to content

Commit

Permalink
Make pop_closed pub, to simplify DIY drains
Browse files Browse the repository at this point in the history
Includes-commit: 069a792
Replicated-from: #209
Signed-off-by: Benjamin Leggett <benjamin.leggett@solo.io>
  • Loading branch information
bleggett authored and eaufavor committed May 10, 2024
1 parent 6229cc5 commit b493ac0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .bleep
Original file line number Diff line number Diff line change
@@ -1 +1 @@
547ccfbe180fd88e07d229c771fa66479eaabedb
64c5e3fa4a538348e25a1ac5fe18245fc6d1eefc
2 changes: 1 addition & 1 deletion pingora-pool/src/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b493ac0

Please sign in to comment.