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

Commit f8467d8

Browse files
committed
Remove unneeded async
1 parent 6bdb390 commit f8467d8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

node/overseer/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ where
818818
self.broadcast_signal(OverseerSignal::ActiveLeaves(update)).await?;
819819
} else {
820820
// if not - prepare one manually. All the required state should be already available.
821-
let update = self.prepare_initial_active_leaves(&block).await;
821+
let update = self.prepare_initial_active_leaves(&block);
822822
self.broadcast_signal(OverseerSignal::ActiveLeaves(update)).await?;
823823
}
824824

@@ -872,7 +872,7 @@ where
872872
}
873873
}
874874

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

0 commit comments

Comments
 (0)