Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Remove unneeded async
Browse files Browse the repository at this point in the history
  • Loading branch information
tdimitrov committed Feb 14, 2023
1 parent 6bdb390 commit f8467d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/overseer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ where
self.broadcast_signal(OverseerSignal::ActiveLeaves(update)).await?;
} else {
// if not - prepare one manually. All the required state should be already available.
let update = self.prepare_initial_active_leaves(&block).await;
let update = self.prepare_initial_active_leaves(&block);
self.broadcast_signal(OverseerSignal::ActiveLeaves(update)).await?;
}

Expand Down Expand Up @@ -872,7 +872,7 @@ where
}
}

async fn prepare_initial_active_leaves(&self, block: &BlockInfo) -> ActiveLeavesUpdate {
fn prepare_initial_active_leaves(&self, block: &BlockInfo) -> ActiveLeavesUpdate {
// In theory we can receive `BlockImported` during initial major sync. In this case the
// update will be empty.
let span = match self.span_per_active_leaf.get(&block.hash) {
Expand Down

0 comments on commit f8467d8

Please sign in to comment.