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

Commit a1145ea

Browse files
committed
Rename to wait_for_scheduler_termination
1 parent db50d2c commit a1145ea

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

runtime/src/installed_scheduler_pool.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ impl BankWithScheduler {
152152
}
153153

154154
pub(crate) fn wait_for_paused_scheduler(bank: &Bank, scheduler: &InstalledSchedulerRwLock) {
155-
let maybe_result_with_timings = BankWithSchedulerInner::wait_for_scheduler(
155+
let maybe_result_with_timings = BankWithSchedulerInner::wait_for_scheduler_termination(
156156
bank,
157157
scheduler,
158158
WaitReason::PausedForRecentBlockhash,
@@ -165,7 +165,7 @@ impl BankWithScheduler {
165165

166166
#[must_use]
167167
pub fn wait_for_completed_scheduler(&self) -> Option<ResultWithTimings> {
168-
BankWithSchedulerInner::wait_for_scheduler(
168+
BankWithSchedulerInner::wait_for_scheduler_termination(
169169
&self.inner.bank,
170170
&self.inner.scheduler,
171171
WaitReason::TerminatedToFreeze,
@@ -180,21 +180,21 @@ impl BankWithScheduler {
180180
impl BankWithSchedulerInner {
181181
#[must_use]
182182
fn wait_for_completed_scheduler_from_drop(&self) -> Option<ResultWithTimings> {
183-
Self::wait_for_scheduler(
183+
Self::wait_for_scheduler_termination(
184184
&self.bank,
185185
&self.scheduler,
186186
WaitReason::DroppedFromBankForks,
187187
)
188188
}
189189

190190
#[must_use]
191-
fn wait_for_scheduler(
191+
fn wait_for_scheduler_termination(
192192
bank: &Bank,
193193
scheduler: &InstalledSchedulerRwLock,
194194
reason: WaitReason,
195195
) -> Option<ResultWithTimings> {
196196
debug!(
197-
"wait_for_scheduler(slot: {}, reason: {:?}): started...",
197+
"wait_for_scheduler_termination(slot: {}, reason: {:?}): started...",
198198
bank.slot(),
199199
reason,
200200
);
@@ -212,7 +212,7 @@ impl BankWithSchedulerInner {
212212
None
213213
};
214214
debug!(
215-
"wait_for_scheduler(slot: {}, reason: {:?}): finished with: {:?}...",
215+
"wait_for_scheduler_termination(slot: {}, reason: {:?}): finished with: {:?}...",
216216
bank.slot(),
217217
reason,
218218
result_with_timings.as_ref().map(|(result, _)| result),

0 commit comments

Comments
 (0)