Skip to content

Commit

Permalink
Make pop_closed pub, to simplify DIY drains
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Leggett <benjamin.leggett@solo.io>
  • Loading branch information
bleggett committed Apr 17, 2024
1 parent 7ce6f4a commit 069a792
Showing 1 changed file with 1 addition and 1 deletion.
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 069a792

Please sign in to comment.