Skip to content

Remove duplicate code from announce request handlers#183

Merged
josecelano merged 6 commits intotorrust:developfrom
josecelano:remove-duplicate-code-from-announce-handlers
Feb 12, 2023
Merged

Remove duplicate code from announce request handlers#183
josecelano merged 6 commits intotorrust:developfrom
josecelano:remove-duplicate-code-from-announce-handlers

Conversation

@josecelano
Copy link
Copy Markdown
Member

@josecelano josecelano commented Feb 10, 2023

Before implementing the new 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.

@josecelano josecelano added the Code Cleanup / Refactoring Tidying and Making Neat label Feb 10, 2023
@josecelano
Copy link
Copy Markdown
Member Author

@da2ce7 @WarmBeer, this is ready to review. It's only a refactor.

and make another function private.
@josecelano josecelano merged commit 20f5751 into torrust:develop Feb 12, 2023
@josecelano josecelano deleted the remove-duplicate-code-from-announce-handlers branch February 12, 2023 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Code Cleanup / Refactoring Tidying and Making Neat

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant