Skip to content

Commit

Permalink
[CheckpointExecutor] Remove unneccesary asyncs
Browse files Browse the repository at this point in the history
  • Loading branch information
williampsmith committed Jun 7, 2024
1 parent 0eb0145 commit e4c7b3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/sui-core/src/checkpoints/checkpoint_executor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ impl CheckpointExecutor {
.set(is_inconsistent_state as i64);
}

async fn bump_highest_executed_checkpoint(&self, checkpoint: &VerifiedCheckpoint) {
fn bump_highest_executed_checkpoint(&self, checkpoint: &VerifiedCheckpoint) {
// Ensure that we are not skipping checkpoints at any point
let seq = *checkpoint.sequence_number();
debug!("Bumping highest_executed_checkpoint watermark to {seq:?}");
Expand Down Expand Up @@ -434,7 +434,7 @@ impl CheckpointExecutor {
.accumulate_running_root(epoch_store, checkpoint.sequence_number, checkpoint_acc)
.await
.expect("Failed to accumulate running root");
self.bump_highest_executed_checkpoint(checkpoint).await;
self.bump_highest_executed_checkpoint(checkpoint);
}
}

Expand Down Expand Up @@ -689,7 +689,7 @@ impl CheckpointExecutor {
.await
.expect("Accumulating epoch cannot fail");

self.bump_highest_executed_checkpoint(checkpoint).await;
self.bump_highest_executed_checkpoint(checkpoint);

return true;
}
Expand Down

0 comments on commit e4c7b3b

Please sign in to comment.