Skip to content

Commit

Permalink
fix ci??
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Dec 20, 2024
1 parent bac313a commit 266b03e
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions runtime/src/installed_scheduler_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -504,13 +504,10 @@ impl BankWithScheduler {
}

pub fn unblock_block_production(&self) {
self.inner
.with_active_scheduler(|scheduler| {
assert_matches!(scheduler.context().mode(), SchedulingMode::BlockProduction);
scheduler.unblock_scheduling();
Ok(())
})
.unwrap();
if let SchedulerStatus::Active(scheduler) = &*self.inner.scheduler.read().unwrap() {
assert_matches!(scheduler.context().mode(), SchedulingMode::BlockProduction);
scheduler.unblock_scheduling();
}
}

#[cfg_attr(feature = "dev-context-only-utils", qualifiers(pub))]
Expand Down

0 comments on commit 266b03e

Please sign in to comment.