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 5089205
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions runtime/src/installed_scheduler_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ 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.
Expand Down Expand Up @@ -395,7 +396,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 +408,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 5089205

Please sign in to comment.