From a8d873627f1f88405335c84d629141fd70ff6df4 Mon Sep 17 00:00:00 2001 From: Ryo Onodera Date: Thu, 9 May 2024 14:55:39 +0900 Subject: [PATCH] Fix typo and improve wording --- runtime/src/installed_scheduler_pool.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/runtime/src/installed_scheduler_pool.rs b/runtime/src/installed_scheduler_pool.rs index cfbb46f30c38d2..f4371b0efd9284 100644 --- a/runtime/src/installed_scheduler_pool.rs +++ b/runtime/src/installed_scheduler_pool.rs @@ -116,16 +116,17 @@ pub trait InstalledScheduler: Send + Sync + Debug + 'static { /// previously-scheduled bad transaction, which terminates further block verification. So, /// almost always, the returned error isn't due to the merely scheduling of the current /// transaction itself. At this point, calling this does nothing anymore while it's still safe - /// to do. As soon as notified, callers is expected to stop processing upcoming transactions of - /// the same `SchedulingContext` (i.e. same block). Internally, the aborted scheduler will be - /// disposed cleanly, not repooled, after `wait_for_termination()` is called, much like + /// to do. As soon as notified, callers are expected to stop processing upcoming transactions + /// of the same `SchedulingContext` (i.e. same block). Internally, the aborted scheduler will + /// be disposed cleanly, not repooled, after `wait_for_termination()` is called like /// not-aborted schedulers. /// /// Caller can acquire the error by calling a separate function called /// `recover_error_after_abort()`, which requires `&mut self`, instead of `&self`. This - /// separation and convoluted returned value semantics explained above are intentional to + /// separation and the convoluted returned value semantics explained above are intentional to /// optimize the fast code-path of normal transaction scheduling to be multi-threaded at the - /// cost of far slower error code-path. + /// cost of far slower error code-path while giving implementors increased flexibility by + /// having &mut. fn schedule_execution<'a>( &'a self, transaction_with_index: &'a (&'a SanitizedTransaction, usize),