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

add check for left==0 for get peers stage #8

Merged
merged 1 commit into from
Feb 27, 2024
Merged

add check for left==0 for get peers stage #8

merged 1 commit into from
Feb 27, 2024

Conversation

sarp
Copy link
Collaborator

@sarp sarp commented Feb 26, 2024

In peers response, our tracker doesn't return "peers" key when left parameter is zero
Since we use a fake tracker for tests, people were passing this test with left == 0 and getting confused at the next stage
This PR is to have consistency between tests and the tracker we use, both will not return peers when left parameter is zero

@sarp sarp requested a review from rohitpaulk February 26, 2024 20:20
@sarp sarp marked this pull request as ready for review February 26, 2024 20:22
@rohitpaulk
Copy link
Member

Nice catch!

@sarp sarp merged commit 1017ee6 into main Feb 27, 2024
1 check passed
@sarp sarp deleted the sarp/leftzero branch February 27, 2024 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants