Skip to content

Conversation

josecelano
Copy link
Member

@josecelano josecelano commented Feb 10, 2023

This PR is associated with this parent PR.

We are changing the HTTP tracker to use Axum instead of Warp. This PR implements the announce request for the tracker in public mode.

@josecelano josecelano merged commit cecbc17 into torrust:develop Feb 12, 2023
josecelano added a commit that referenced this pull request Feb 12, 2023
7fcc19d refactor: remove unneeded method (Jose Celano)
3b20795 refactor: function does not need to be pub anymore (Jose Celano)
cecbc17 refactor: extract duplicate code from announce request handlers (Jose Celano)
156ac4d refactor: clean announce request handlers (Jose Celano)
05ea741 refactor: move code from domain to delivery layer (Jose Celano)
4b8fbfb refactor: the tracker is responsible for assigning the IP to peers (Jose Celano)

Pull request description:

  Before implementing the [new](#182) `announce` handler for the Axum HTTP tracker, I needed to clean up the current handlers (UDP and HTTP). The code was duplicated, and I did not want to add a third copy.

  I planned to do it after migrating to Axum, but I changed my mind. I think the migration to Axum is going to be easier after this refactor.

Top commit has no ACKs.

Tree-SHA512: 21ed9132f083058b8e789184a665ab86344688ca482411abf2193bbd6f04d3b3d03ba53300361a9b54444ae12b1d0c4df65272f5da45d48364f4a419a675b007
@josecelano josecelano changed the title Axum HTTP tracker: announce request implementation in public mode Axum HTTP tracker: remove duplicate code from announce request hadlers Feb 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant