torrust / torrust-index

This repository serves as the backend for the Torrust Index project.
https://torrust.com
GNU Affero General Public License v3.0
49 stars 19 forks source link

Extract duplicate implementation of `InfoHash` struct #251

Open josecelano opened 1 year ago

josecelano commented 1 year ago

Relates to: https://github.com/torrust/torrust-tracker/issues/360

We are duplicating code for:

pub struct InfoHash(pub [u8; 20]);` struct

We should extract a common BitTorrent protocol crate for both the Tracker and the Index Backend.

josecelano commented 1 year ago

Documentation for the InfoHash have been improved here:

https://github.com/torrust/torrust-index-backend/pull/249/commits/bc04231c1d475cd323a8f6adb594c2dbaed052cc