Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define SchedulerInner for fine-grained cleaning #4133

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

ryoqun
Copy link
Member

@ryoqun ryoqun commented Dec 16, 2024

Problem

solScCleaner will need to access more inner workings of SchedulerInner for block production.

Summary of Changes

Introduce such an trait in advance.

No functional change, so no test is added.

extracted from #3946, see the pr for the general overview.

fn return_scheduler(&self, scheduler: S::Inner) {
// Refer to the comment in is_aborted() as to the exact definition of the concept of
// _trashed_ and the interaction among different parts of unified scheduler.
let should_trash = scheduler.is_trashed();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that S::Inner is bound to SchedulerInner, .is_trashed() is callable in this context, so remove the unneeded arg (should_trash).

@ryoqun ryoqun merged commit e27e2be into anza-xyz:master Dec 17, 2024
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants