Skip to content

Commit eba1127

Browse files
authored
Merge branch 'main' into rm-tracing-chrome
2 parents 9fd7901 + 875dcec commit eba1127

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ clap = { version = "4", features = ["derive"] }
5757
clap_complete = "4"
5858
colored = "3"
5959
criterion = { version = "0.8", default-features = false, features = ["async_tokio"], optional = true }
60+
crossbeam-utils = "0.8"
6061
crypto_secretbox = "0.1"
6162
data-encoding = "2"
6263
data-encoding-macro = "0.1"

src/db/blockstore_with_read_cache.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ pub trait BlockstoreReadCacheStats {
5050

5151
#[derive(Debug, Default)]
5252
pub struct DefaultBlockstoreReadCacheStats {
53-
hit: AtomicUsize,
54-
miss: AtomicUsize,
53+
hit: crossbeam_utils::CachePadded<AtomicUsize>,
54+
miss: crossbeam_utils::CachePadded<AtomicUsize>,
5555
}
5656

5757
impl BlockstoreReadCacheStats for DefaultBlockstoreReadCacheStats {

0 commit comments

Comments
 (0)