-
Notifications
You must be signed in to change notification settings - Fork 238
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
Cypress Disjoint Query & Query Termination code cleanup #489
Conversation
isLess := ph.compare(h[i].Peer, h[j].Peer) | ||
|
||
// because the "compare" function returns true if peer1 is less than peer2, | ||
// we need to reverse it's result if the Heap is a maxHeap. |
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.
// we need to reverse it's result if the Heap is a maxHeap. | |
// we need to reverse the result if the Heap is a maxHeap. |
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.
LGTM
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.
Looking good, a few changes and things to clear up.
* kpeerset refactoring * query code cleanup
* kpeerset refactoring * query code cleanup
Cleanup the code, add docs & tests for the new query code for cypress.