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

Commit 3b10856

Browse files
author
steviez
authored
Demote Arc<Bank> parameter to &Bank (#33130)
1 parent 25d3db0 commit 3b10856

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/cache_block_meta_service.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl CacheBlockMetaService {
4141
}
4242
Ok(bank) => {
4343
let mut cache_block_meta_timer = Measure::start("cache_block_meta_timer");
44-
Self::cache_block_meta(bank, &blockstore);
44+
Self::cache_block_meta(&bank, &blockstore);
4545
cache_block_meta_timer.stop();
4646
if cache_block_meta_timer.as_ms() > CACHE_BLOCK_TIME_WARNING_MS {
4747
warn!(
@@ -57,7 +57,7 @@ impl CacheBlockMetaService {
5757
Self { thread_hdl }
5858
}
5959

60-
fn cache_block_meta(bank: Arc<Bank>, blockstore: &Blockstore) {
60+
fn cache_block_meta(bank: &Bank, blockstore: &Blockstore) {
6161
if let Err(e) = blockstore.cache_block_time(bank.slot(), bank.clock().unix_timestamp) {
6262
error!("cache_block_time failed: slot {:?} {:?}", bank.slot(), e);
6363
}

0 commit comments

Comments
 (0)