-
Notifications
You must be signed in to change notification settings - Fork 46
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
Torrent Repository Work #690
Conversation
ae2a2df
to
1ff14d2
Compare
622da58
to
72d0678
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #690 +/- ##
===========================================
+ Coverage 74.06% 77.71% +3.64%
===========================================
Files 145 158 +13
Lines 8958 8711 -247
===========================================
+ Hits 6635 6770 +135
+ Misses 2323 1941 -382 ☔ View full report in Codecov by Sentry. |
840af5b
to
7bec6a3
Compare
f922e82
to
65bc3c1
Compare
65bc3c1
to
0d35075
Compare
087b785
to
9f107e7
Compare
7a10305
to
d69731b
Compare
d69731b
to
3dd693d
Compare
69c0137
to
6ed6195
Compare
78c66f6
to
f7f4f37
Compare
extracted async and sync implementations
d81b693
to
43283b7
Compare
43283b7
to
3414e2a
Compare
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.
Hi @da2ce7
This is a lot of work and it was needed. Just a couple of generic comments:
- You could have created at least 3 different PRs: two of them to extract the new packages (clock and torrent-repository-xx) and another one for the rest (primitives). Just to avoid wasting time merging potential conflicts. For example, merging this PR before this one.
- There are things I would move to independent repos. Basically, the things that can be used in other repos not only the tracker.
- clock. See: https://github.com/torrust/torrust-index/blob/develop/src/utils/clock.rs
- infohash. See Extract duplicate implementation of
InfoHash
struct torrust-index#251
But we can do that later. I've created a new issue from one of my old comments about this topic:
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.
Hi @da2ce7 why didn't you move the tests also to the torrust_tracker_primitives
crate?
ACK 3414e2a |
This pull request is a major refactor of the torrent repository for the tracker. The code for the repository has been extracted and merged into a library package, along side it's benchmarking and testing code.
The supporting clock and time extent, and some other primitives have also been extracted, to avoid circular dependencies.