-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sniffer::wait_for_message_count
#1283
Closed
plebhash
wants to merge
1
commit into
stratum-mining:main
from
plebhash:sniffer_wait_for_message_count
Closed
Sniffer::wait_for_message_count
#1283
plebhash
wants to merge
1
commit into
stratum-mining:main
from
plebhash:sniffer_wait_for_message_count
Conversation
This file contains 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
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1283 +/- ##
=======================================
Coverage 19.30% 19.30%
=======================================
Files 164 164
Lines 10849 10849
=======================================
Hits 2094 2094
Misses 8755 8755
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Bencher Report
Click to view all benchmark results
|
Bencher Report
Click to view all benchmark results
|
Bencher Report
🚨 3 Alerts
Click to view all benchmark results
|
plebhash
force-pushed
the
sniffer_wait_for_message_count
branch
2 times, most recently
from
December 10, 2024 07:25
d1c03d9
to
ffbf3b7
Compare
plebhash
force-pushed
the
sniffer_wait_for_message_count
branch
from
December 10, 2024 07:27
ffbf3b7
to
e0a52b0
Compare
closing in favor of #1284 |
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.
close #1282
this PR adds a new method
Sniffer::wait_for_message_count
which takes two parameters:message_direction: MessageDirection
count: usize
the function will return execution as soon as there's some expected number of messages stored on some
Sniffer
FIFO (ToUpstream
orToDownstream
)this can be used to hold the execution of the tokio runtime of some Integration Test
it's useful when we don't know beforehand how long it could take to e.g.: find a share