-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #1274: Overhaul core Tracker: review whitelist functionality (p…
…art 2) d0e6936 refactor: simplify loop with map (Jose Celano) d49aebd refactor: [#1270] inline udp tracker scrape invoke fn (Jose Celano) af28429 refactor: [#1270] inline udp tracker announce invoke fn (Jose Celano) 6651343 refactor: [#1270] inline http tracker scrape invoke fn (Jose Celano) 096d503 refactor: [#1270] inline http tracker announce invoke fn (Jose Celano) dbee7ad refactor: [#1270] extract fn to new package udp-protocol (Jose Celano) da1353b refactor: [#1270] return errorin core announce and scrape handler (Jose Celano) Pull request description: Overhaul core Tracker: review whitelist functionality (part 2). - [x] Return an error in the announce handler if the tracker is running in `listed` mode and the infohash is not whitelisted. This is already implemented in the higher delivery layer but it should be also validated in the tracker core (domain layer). - [x] Change scrape handler signature to return an error even if it's not needed now. That will allow us to return an error in the future whiteout breaking changes. - [x] Move `packages::udp_tracker_core::peer_builder::from_request` to new package `udp-protocol` - [x] Inline `invoke` function in handlers (`http-tracker-core` and `udp-tracker-core`) when possible. ACKs for top commit: josecelano: ACK d0e6936 Tree-SHA512: b4e9356291b35b1cc6a20a5b28a6c0b9136baafbb9bc71638bd83932709970f3ee8bee91a81cc09a775244fd3e774131d238cf4f52920bcc141fed4161b86b03
- Loading branch information
Showing
27 changed files
with
1,189 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.