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

Fair queuing for bootstrap server #4584

Merged

Conversation

pwojcikdev
Copy link
Contributor

This implements fair request processing for bootstrap server component.

nano::thread_role::set (nano::thread_role::name::bootstrap_server);
run ();
}));
}
}

void nano::bootstrap_server::stop ()
{
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be good to have an assert here to check that it is not already stopped.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In contrast to start, calling stop multiple times is correct and should behave well.

@pwojcikdev pwojcikdev merged commit ef9e02a into nanocurrency:develop Apr 26, 2024
25 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Merged / V27.0
Development

Successfully merging this pull request may close these issues.

4 participants