-
Notifications
You must be signed in to change notification settings - Fork 44
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
fix: ensure newly discovered pair as a better priority before nominating it #463
fix: ensure newly discovered pair as a better priority before nominating it #463
Conversation
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.
YMMV but I find the max_by_key
solution cleaner. Finding the pair again by prio which isn't unique sound like a bug with a ticking timer on it :)
You might be right, but I don't like the combinatorial logic here. Doubling up on that rather complicated |
Yeah fair. Instead of |
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.
This looks good now. Let's ship it!
No description provided.