Skip to content

Conversation

@josecelano
Copy link
Member

Enrich UDP core Event::UdpAnnounce event.

pub enum Event {
    UdpConnect {
        connection: ConnectionContext,
    },
    UdpAnnounce {
        connection: ConnectionContext,
        info_hash: InfoHash,               // New field
        announcement: PeerAnnouncement,    // New field
    },
    UdpScrape {
        connection: ConnectionContext,
    },
}

…::UdpAnnounce

Added:

- info-hash
- peer announcement info

Following the same chage as in the HTTP tracker core.
In order to be able to compare full events.
@codecov
Copy link

codecov bot commented Apr 22, 2025

Codecov Report

Attention: Patch coverage is 97.19626% with 3 lines in your changes missing coverage. Please review.

Project coverage is 84.55%. Comparing base (c4dc5e3) to head (e9ec15a).
Report is 6 commits behind head on develop.

Files with missing lines Patch % Lines
packages/udp-tracker-core/src/services/announce.rs 94.73% 0 Missing and 1 partial ⚠️
packages/udp-tracker-core/src/services/scrape.rs 83.33% 0 Missing and 1 partial ⚠️
packages/udp-tracker-server/src/lib.rs 96.96% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1473      +/-   ##
===========================================
+ Coverage    84.50%   84.55%   +0.04%     
===========================================
  Files          255      257       +2     
  Lines        19437    19510      +73     
  Branches     19437    19510      +73     
===========================================
+ Hits         16426    16496      +70     
- Misses        2726     2727       +1     
- Partials       285      287       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@josecelano josecelano force-pushed the 1384-overhaul-stats-add-announced-peer-to-udp-core-announce-event branch from d741707 to e9ec15a Compare April 22, 2025 18:49
@josecelano josecelano self-assigned this Apr 22, 2025
@josecelano josecelano added Enhancement / Feature Request Something New - Developer - Torrust Improvement Experience labels Apr 22, 2025
@josecelano
Copy link
Member Author

ACK e9ec15a

@josecelano josecelano merged commit 0485a86 into torrust:develop Apr 22, 2025
21 checks passed
@josecelano josecelano linked an issue Apr 22, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

- Developer - Torrust Improvement Experience Enhancement / Feature Request Something New

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Overhaul stats: Add announced Peer to UDP core announce event

1 participant