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
8167598 refactor: [#1309] align our HTTP Announce Events with the aquatic one (Jose Celano)
5362a6d refactor: [#1309] remove unused code adn rename function (Jose Celano)
Pull request description:
Refactor packages: review `AnnounceEvent` struct.
- Modify the `bittorrent_http_tracker_protocol::v1::requests::announce::Event` introducing a new variant `Empty`. This aligns our implementation with the aquatic one and make conversions between HTTP and UDP Announce events direct. It's also part of the protocol in the [BEP 3](https://www.bittorrent.org/beps/bep_0003.html).
- Keep the UDP Announce Event as the primitive type used everywhere. I wanted to removed it from packages that are not the `udp-tracker-core` package but we are using other primitives types from the aquatic UDP tracker protocol crate. We need to carefully study it and open a new issue if we want to remove that dependency.
ACKs for top commit:
josecelano:
ACK 8167598
Tree-SHA512: b2184cefca215d848fed0e2b4ea234428a402295f36d2d3e2a44b4156bbe35209ca446b29c5b49e8aed60c938b1b22dc4d350c0ed8087a9c46f9cf89be00bf02
0 commit comments