Skip to content

SI-26: Remove udp-protocol re-export of PeerId/PeerClient (EPIC #1669) #1907

Closed

Description

@josecelano

Subissue of EPIC #1669 — Overhaul: Packages

Problem

After the extraction of bittorrent-peer-id -> torrust-peer-id (SI-19, #1884), the torrust-tracker-udp-tracker-protocol crate still re-exports PeerId and PeerClient at its public API boundary. This creates unnecessary coupling: consumers import PeerId from the UDP protocol crate instead of directly from torrust-peer-id.

Scope

  1. axum-http-server (tests/): Replace use torrust_tracker_udp_tracker_protocol::PeerId with use torrust_peer_id::PeerId.
  2. tracker-client (packages/tracker-client): Replace use torrust_tracker_udp_tracker_protocol::PeerId with use torrust_peer_id::PeerId.
  3. udp-server: Replace use torrust_tracker_udp_tracker_protocol::PeerClient with use torrust_peer_id::PeerClient.
  4. udp-protocol: Remove the pub use re-exports from src/lib.rs and src/common.rs.

Acceptance Criteria

  1. No workspace crate imports PeerId or PeerClient from torrust-tracker-udp-tracker-protocol.
  2. cargo test --workspace passes.
  3. cargo machete passes.
  4. linter all passes.

Activity

  1. added
    Code Cleanup / Refactoring
    EPIC
    and removed
    EPIC
    on Jun 11, 2026
  2. self-assigned this
    on Jun 11, 2026
  3. added 3 commits that reference this issue on Jun 17, 2026
    bfe1544
    e9ad447
    6544933
  4. added a commit that references this issue on Jul 20, 2026
    3b1c281
  5. added 2 commits that reference this issue on Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Code Cleanup / Refactoring

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions