Skip to content

Commit

Permalink
PrunedBanksRequestHandler::handle_request() is only pub with dcou (so…
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo authored Sep 6, 2023
1 parent 88ee8f5 commit a80819b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions programs/sbf/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ num_cpus = { workspace = true }
num_enum = { workspace = true }
ouroboros = { workspace = true }
percentage = { workspace = true }
qualifier_attr = { workspace = true }
rand = { workspace = true }
rayon = { workspace = true }
regex = { workspace = true }
Expand Down
5 changes: 4 additions & 1 deletion runtime/src/accounts_background_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
//! This can be expensive since we have to walk the append vecs being cleaned up.
mod stats;
#[cfg(feature = "dev-context-only-utils")]
use qualifier_attr::qualifiers;
use {
crate::{
bank::{Bank, BankSlotDelta, DropCallback},
Expand Down Expand Up @@ -501,7 +503,8 @@ pub struct PrunedBanksRequestHandler {
}

impl PrunedBanksRequestHandler {
pub fn handle_request(&self, bank: &Bank) -> usize {
#[cfg_attr(feature = "dev-context-only-utils", qualifiers(pub))]
fn handle_request(&self, bank: &Bank) -> usize {
let mut banks_to_purge: Vec<_> = self.pruned_banks_receiver.try_iter().collect();
// We need a stable sort to ensure we purge banks—with the same slot—in the same order
// they were sent into the channel.
Expand Down

0 comments on commit a80819b

Please sign in to comment.