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

Cypress Disjoint Query & Query Termination code cleanup #489

Merged
merged 4 commits into from
Mar 13, 2020

Conversation

aarshkshah1992
Copy link
Contributor

Cleanup the code, add docs & tests for the new query code for cypress.

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.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// 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.

@aarshkshah1992 aarshkshah1992 changed the title [WIP] Cypress Disjoint Query & Query Termination code cleanup Cypress Disjoint Query & Query Termination code cleanup Mar 12, 2020
Copy link
Contributor

@willscott willscott left a comment

Choose a reason for hiding this comment

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

LGTM

routing.go Show resolved Hide resolved
Copy link
Contributor

@aschmahmann aschmahmann left a 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/sorted_peerset.go Show resolved Hide resolved
kpeerset/sorted_peerset.go Outdated Show resolved Hide resolved
kpeerset/sorted_peerset.go Show resolved Hide resolved
kpeerset/sorted_peerset.go Show resolved Hide resolved
query.go Outdated Show resolved Hide resolved
query.go Outdated Show resolved Hide resolved
query.go Outdated Show resolved Hide resolved
query.go Outdated Show resolved Hide resolved
query.go Outdated Show resolved Hide resolved
routing.go Outdated Show resolved Hide resolved
@aschmahmann aschmahmann merged commit 54a4c81 into cypress Mar 13, 2020
Stebalien pushed a commit that referenced this pull request Mar 13, 2020
* kpeerset refactoring
* query code cleanup
@Stebalien Stebalien deleted the feat/disjoint-query-cleanup branch March 18, 2020 20:46
Stebalien pushed a commit that referenced this pull request Apr 3, 2020
* kpeerset refactoring
* query code cleanup
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.

None yet

3 participants