Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 5089205

Browse files
committed
Tweak message and comment a bit
1 parent 7f9a033 commit 5089205

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

runtime/src/installed_scheduler_pool.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ pub enum WaitReason {
162162
// most normal termination waiting mode; couldn't be done implicitly inside Bank::freeze() -> () to return
163163
// the result and timing in some way to higher-layer subsystems;
164164
TerminatedToFreeze,
165+
// just behaves like TerminatedToFreeze but hint that this is called from Drop::drop().
165166
DroppedFromBankForks,
166167
// scheduler is paused without being returned to pool in order to collect ResultWithTimings
167168
// later.
@@ -395,7 +396,7 @@ impl BankWithSchedulerInner {
395396
fn drop_scheduler(&self) {
396397
if std::thread::panicking() {
397398
error!(
398-
"BankWithSchedulerInner::drop(): slot: {} skipping due to already panicking...",
399+
"BankWithSchedulerInner::drop_scheduler(): slot: {} skipping due to already panicking...",
399400
self.bank.slot(),
400401
);
401402
return;
@@ -407,7 +408,7 @@ impl BankWithSchedulerInner {
407408
.map(|(result, _timings)| result)
408409
{
409410
warn!(
410-
"BankWithSchedulerInner::drop(): slot: {} discarding error from scheduler: {:?}",
411+
"BankWithSchedulerInner::drop_scheduler(): slot: {} discarding error from scheduler: {:?}",
411412
self.bank.slot(),
412413
err,
413414
);

0 commit comments

Comments
 (0)