Skip to content

Commit

Permalink
Tweak message and comment a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Oct 28, 2023
1 parent 7f9a033 commit 322154a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions runtime/src/installed_scheduler_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ pub trait InstalledScheduler<SEA: ScheduleExecutionArg>: Send + Sync + Debug + '
fn id(&self) -> SchedulerId;
fn pool(&self) -> InstalledSchedulerPoolArc<SEA>;

// Calling this is illegal as soon as wait_for_termination is called on &self.
// Calling this is illegal as soon as wait_for_termination is called.
fn schedule_execution<'a>(&'a self, transaction_with_index: SEA::TransactionWithIndex<'a>);

#[must_use]
Expand Down Expand Up @@ -162,9 +162,9 @@ pub enum WaitReason {
// most normal termination waiting mode; couldn't be done implicitly inside Bank::freeze() -> () to return
// the result and timing in some way to higher-layer subsystems;
TerminatedToFreeze,
// just behaves like TerminatedToFreeze but hint that this is called from Drop::drop().
DroppedFromBankForks,
// scheduler is paused without being returned to pool in order to collect ResultWithTimings
// later.
// scheduler is paused without being returned to the pool to collect ResultWithTimings later.
PausedForRecentBlockhash,
}

Expand Down Expand Up @@ -395,7 +395,7 @@ impl BankWithSchedulerInner {
fn drop_scheduler(&self) {
if std::thread::panicking() {
error!(
"BankWithSchedulerInner::drop(): slot: {} skipping due to already panicking...",
"BankWithSchedulerInner::drop_scheduler(): slot: {} skipping due to already panicking...",
self.bank.slot(),
);
return;
Expand All @@ -407,7 +407,7 @@ impl BankWithSchedulerInner {
.map(|(result, _timings)| result)
{
warn!(
"BankWithSchedulerInner::drop(): slot: {} discarding error from scheduler: {:?}",
"BankWithSchedulerInner::drop_scheduler(): slot: {} discarding error from scheduler: {:?}",
self.bank.slot(),
err,
);
Expand Down

0 comments on commit 322154a

Please sign in to comment.