Repository navigation
Overhaul stats: Extract events package (part 2) - #1483
Merged
josecelano merged 8 commits intoApr 28, 2025
Merged
josecelano merged 8 commits into
josecelano merged 8 commits into
Conversation
It will contain shared logic for handling events in other packages.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #1483 +/- ##
===========================================
- Coverage 84.36% 84.36% -0.01%
===========================================
Files 253 250 -3
Lines 19783 19719 -64
Branches 19783 19719 -64
===========================================
- Hits 16690 16636 -54
+ Misses 2788 2779 -9
+ Partials 305 304 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
josecelano
force-pushed
the
1480-overhaul-stats-extract-events-package-part-2
branch
from
April 28, 2025 11:20
762d632 to
29b00c8
Compare
Member
Author
|
ACK 540520c |
josecelano
marked this pull request as ready for review
April 28, 2025 16:43
5 tasks done
josecelano
added a commit
that referenced
this pull request
Apr 29, 2025
d98d93f refactor: [#1485] simplify event mods in pakages using the events pkg (Jose Celano) 97eb20a test: [#1485] add unit tests to events pkg (Jose Celano) 5a087d0 refactor: [#1485] replace Arc<Box<dyn Sender>> with Arc<dyn Sender> to avoid double allocations (Jose Celano) 8f5b57e refactor: [#1485] replace Arc<Option> with Option<Arc> in events pkg (Jose Celano) c2df95f refactor: [#1485] rename trait fn send_event to send (Jose Celano) f546bc1 refactor: [#1485] normalize event type parameter name in events pkg (Jose Celano) 3057f48 refactor: [#1485] decouple events traits from tokio broadcast channel implementation (Jose Celano) e3703c1 feat: [#1485] add Receiver trait to events package (Jose Celano) d4343c0 fix: [#1485] remove duplicate const (Jose Celano) Pull request description: Continuation of #1483 ### Subtasks - [x] `Receiver` trait. - [x] Decouple `Sender` and `Receiver` traits from the tokio broadcast implementation. Wrapper for `SendError` and `RecvError`. - [x] Return an `Option<Arc<...>>` instead of an `Arc<Option<...>>` in the `EventBus` implementation. - [x] Replace `Arc<Box<dyn Sender>>` with `Arc<dyn Sender>` to avoid double allocations. - [x] Add unit tests. ACKs for top commit: josecelano: ACK d98d93f Tree-SHA512: 6798238ff6dc2f6e06ecd077c2f0ddd56cd1e52bbb803273535bde6eec5c1334603d26c78daedb82eac886c5146fc575430520c0d29e7565e0fcb32ecdfe112c
Contributor
|
Post-merge note: this pull request requested a review from this account and was closed without one at its final head. A post-merge review will not be done: Only 93 of the 195 executable lines it added remain on the default branch, at their own paths or in the files those paths were later renamed to; the rest has since been rewritten or removed. |
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extract the new
eventspackage.Subtasks
events.packages/http-tracker-core/src/eventand make it generic.http-tracker-coreudp-tracker-coreudp-tracker-server