Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Adds logs for starting/stopping of the background account hasher #33903

Merged
merged 1 commit into from
Oct 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion accounts-db/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2912,6 +2912,7 @@ impl AccountsDb {
}

fn background_hasher(receiver: Receiver<CachedAccount>) {
info!("Background account hasher has started");
loop {
let result = receiver.recv();
match result {
Expand All @@ -2922,11 +2923,13 @@ impl AccountsDb {
let _ = (*account).hash();
};
}
Err(_) => {
Err(err) => {
info!("Background account hasher is stopping because: {err}");
break;
}
}
}
info!("Background account hasher has stopped");
}

fn start_background_hasher(&mut self) {
Expand Down