-
Notifications
You must be signed in to change notification settings - Fork 795
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
Fair queuing for bootstrap server #4584
Conversation
nano::thread_role::set (nano::thread_role::name::bootstrap_server); | ||
run (); | ||
})); | ||
} | ||
} | ||
|
||
void nano::bootstrap_server::stop () | ||
{ |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
This implements fair request processing for bootstrap server component.