Skip to content

Commit

Permalink
Add debug load around loading segment headers cache from aux store
Browse files Browse the repository at this point in the history
  • Loading branch information
nazar-pc committed Jul 26, 2023
1 parent 981f079 commit fd85a02
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crates/sc-consensus-subspace/src/archiver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ where
let mut cache = Vec::with_capacity(Self::INITIAL_CACHE_CAPACITY);
let mut next_key_index = 0;

debug!(
target: "subspace",
"Started loading segment headers into cache"
);
while let Some(segment_headers) =
aux_store
.get_aux(&Self::key(next_key_index))?
Expand All @@ -86,6 +90,10 @@ where
cache.extend(segment_headers);
next_key_index += 1;
}
debug!(
target: "subspace",
"Finished loading segment headers into cache"
);

Ok(Self {
inner: Arc::new(SegmentHeadersStoreInner {
Expand Down

0 comments on commit fd85a02

Please sign in to comment.