Skip to content

Add skipped announces back to queue #167

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

Merged
merged 4 commits into from
May 31, 2019
Merged

Add skipped announces back to queue #167

merged 4 commits into from
May 31, 2019

Conversation

codygibb
Copy link
Contributor

@codygibb codygibb commented May 30, 2019

If a torrent is at capacity, we skip announcing that torrent. However, we were not re-adding
that torrent back to the announce queue, so it wouldn't announce again until it was completed.
In practice, if a torrent is at capacity it will very likely be completed, so this bug went by
unnoticed for a long time.

Now, we skip all torrents that are at capacity until we reach a torrent we want to announce.
Then we re-enqueue all the skipped torrents.

@codygibb codygibb requested review from yiranwang52 and evelynl94 May 30, 2019 00:36
@codygibb
Copy link
Contributor Author

cc @mmpei

@codecov-io
Copy link

codecov-io commented May 31, 2019

Codecov Report

❌ Patch coverage is 86.95652% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 67.40%. Comparing base (4fd3753) to head (32e3307).
⚠️ Report is 123 commits behind head on master.

Files with missing lines Patch % Lines
lib/torrent/scheduler/events.go 86.36% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #167      +/-   ##
==========================================
+ Coverage   67.28%   67.40%   +0.12%     
==========================================
  Files         179      179              
  Lines        8743     8754      +11     
==========================================
+ Hits         5883     5901      +18     
+ Misses       2116     2111       -5     
+ Partials      744      742       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@codygibb codygibb merged commit 16efa07 into master May 31, 2019
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.

3 participants