You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
eca5c59 refactor: [#1268] move scrape logic from udp server to udp_tracker_core package (Jose Celano)
c0fc390 refactor: [#1268] move announce logic from udp server to udp_tracker_core package (Jose Celano)
37a142e refactor: [#1268] move scrape logic from axum to http_tracker_core package (Jose Celano)
74815ab refactor: [#1268] move announce logic from axum to http_tracker_core package (Jose Celano)
e48aaf5 [#1268] move udp services to udp_tracker_core package (Jose Celano)
73753e3 [#1268] move http services to http_tracker_core package (Jose Celano)
dec742e refactor: [#1268] extract servers::udp::services::scrape service (Jose Celano)
3c07b26 refactor: [#1268] extract servers::udp::services::announce service (Jose Celano)
81825c9 refactor: [#1268] separate UDP handlers into diferent modules (Jose Celano)
Pull request description:
Overhaul core Tracker: review whitelist functionality.
### Sub-tasks
- [x] Introduce submodules for handlers in UDP: `servers::udp::handlers::{announce, scrape}`.
- [x] Create the missing services (app layer) in the UDP tracker. There is no intermediary level between handlers and the core tracker. It will moved to its own package `udp-tracker-core` later.
- [x] Move the service `services::announce::invoke()` in the HTTP tracker to the `http-tracker-core` package.
- [x] Move the service `services::announce::invoke()` in the UDP tracker to the `udp-tracker-core` package.
- [x] Move logic from the handler (in the framework level - delivery layer) to the application service in the `http-tracker-core` package.
- [x] For the `announce` request
- [x] For the `scrape` request
- [x] Move logic from the handler (controller level - delivery layer) to the application service in the `udp-tracker-core` package.
- [x] For the `announce` request
- [x] For the `scrape` request
- [ ] ~~Add version module also for the UDP tracker. I don't see any reason to use `v1` in the http tracker but not in the UDP tracker.~~ I will leave this until we introduce a new major version.
### Sub-tasks for a new PR
I've left these tasks for a new [issue](#1270). This PR is just moving things and the new tasks imply changing function signatures.
- [ ] In the tracker-core announce handler return a `Result<AnnounceData, AnnounceError>` when the torrent is not included in the whitelist.
- [ ] In the tracker-core scrape handler return a `Result<ScrapeData, ScrapeError>` so we are able to return errors in the future without breaking the public API.
ACKs for top commit:
josecelano:
ACK eca5c59
Tree-SHA512: d3ee37ffa806e8a86813fe564e3840fab7bfc44d2072f85bc2eba84ac3402c95c0f6a5beb2725071cb0498415f55915431b656e98c71b3a6bf469de961c37f03
0 commit comments