Skip to content

Commit

Permalink
Remove scope::run! in sim_timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
moshababo committed Dec 4, 2023
1 parent 6c8f347 commit bb67407
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions node/actors/bft/src/testonly/ut_harness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,19 +406,11 @@ impl UTHarness {
}

pub(crate) async fn sim_timeout(&mut self) {
scope::run!(&self.ctx, |ctx, s| {
s.spawn(async {
let _ = self
.consensus
.replica
.process_input(ctx, &self.consensus.inner, None)
.await;
Ok(())
})
.join(ctx)
})
.await
.unwrap()
self.consensus
.replica
.process_input(&self.ctx, &self.consensus.inner, None)
.await
.unwrap()
}

pub(crate) async fn dispatch_leader_commit(
Expand Down

0 comments on commit bb67407

Please sign in to comment.