-
Notifications
You must be signed in to change notification settings - Fork 51
Extract duplicate implementation of InfoHash struct #360
Copy link
Copy link
Closed
Labels
- Developer -Torrust Improvement ExperienceTorrust Improvement ExperienceBuild | Project SystemCompiling and PackagingCompiling and PackagingCode Cleanup / RefactoringTidying and Making NeatTidying and Making Neat
Milestone
Description
Relates to:
We are duplicating code for:
pub struct InfoHash(pub [u8; 20]);- https://github.com/torrust/torrust-tracker/blob/develop/src/shared/bit_torrent/info_hash.rs#L136-L167
- https://github.com/torrust/torrust-index-backend/blob/develop/src/models/info_hash.rs#L136-L167
We should extract a common BitTorrent protocol crate for both the Tracker and the Index Backend.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
- Developer -Torrust Improvement ExperienceTorrust Improvement ExperienceBuild | Project SystemCompiling and PackagingCompiling and PackagingCode Cleanup / RefactoringTidying and Making NeatTidying and Making Neat
Type
Projects
Status
Done