Skip to content

Commit

Permalink
Adds logs for starting/stopping of the background account hasher
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo committed Oct 27, 2023
1 parent d04ad65 commit 491ad49
Showing 1 changed file with 4 additions and 1 deletion.
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

0 comments on commit 491ad49

Please sign in to comment.