Parent issue: #1261
Relates to:
This is second part of the implementation of this issue.
I decided to merge the PR for the issue #1268 before continuing working of the refactor.
Sub-tasks
NOTE*1: instead of moving the tests I will create new ones for the http_tracker_core after refactoring all packages. The tests contain logic from the delivery layer that it will not be moved to the http_tracker_core so It will be harder to refactor those tests than created new one for the logic that we will finally move to the http_tracker_core.
Parent issue: #1261
Relates to:
This is second part of the implementation of this issue.
I decided to merge the PR for the issue #1268 before continuing working of the refactor.
Sub-tasks
Result<AnnounceData, AnnounceError>when the torrent is not included in the whitelist.Result<ScrapeData, ScrapeError>so we are able to return errors in the future without breaking the public API.packages::udp_tracker_core::peer_builder::from_requestto new packageudp-protocolinvokefunction in handlers when possible.Move tests for the handlers (announce and scrape) from HTTP server to. *1http_tracker_coreMove tests for the handlers (announce and scrape) from UDP server to. *1udp_tracker_coreNOTE*1: instead of moving the tests I will create new ones for the
http_tracker_coreafter refactoring all packages. The tests contain logic from the delivery layer that it will not be moved to thehttp_tracker_coreso It will be harder to refactor those tests than created new one for the logic that we will finally move to thehttp_tracker_core.