Skip to content

Commit

Permalink
[review] address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
akichidis committed Jun 27, 2024
1 parent 627a9d9 commit 8682263
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions consensus/core/src/authority_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ where
registry: Registry,
) -> Self {
info!(
"Starting authority {}\n{:#?}\n{:#?}\n{:?}",
"Starting consensus authority {}\n{:#?}\n{:#?}\n{:?}",
own_index, committee, parameters, protocol_config.version
);
assert!(committee.is_valid_index(own_index));
Expand Down Expand Up @@ -292,7 +292,10 @@ where

network_manager.install_service(network_service).await;

info!("Authority start complete, took {:?}", start_time.elapsed());
info!(
"Consensus authority started, took {:?}",
start_time.elapsed()
);

Self {
context,
Expand Down
4 changes: 2 additions & 2 deletions consensus/core/src/commit_observer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ impl CommitObserver {
.scan_commits(((last_processed_commit_index + 1)..=CommitIndex::MAX).into())
.expect("Scanning commits should not fail");

debug!("Recovering commit observer from {last_processed_commit_index} with last commit {:?} and {} unsent commits", last_commit, unsent_commits.len());
debug!("Recovering commit observer after index {last_processed_commit_index} with last commit {:?} and {} unsent commits", last_commit, unsent_commits.len());

// Resend all the committed subdags to the consensus output channel
// for all the commits above the last processed index.
Expand Down Expand Up @@ -157,7 +157,7 @@ impl CommitObserver {
}

debug!(
"Commit observer recovery complete, took {:?}",
"Commit observer recovery completed, took {:?}",
now.elapsed()
);
}
Expand Down
2 changes: 1 addition & 1 deletion consensus/core/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ impl Core {
}

debug!(
"Core recovery complete with last block {:?}",
"Core recovery completed with last proposed block {:?}",
self.last_proposed_block
);

Expand Down

0 comments on commit 8682263

Please sign in to comment.