Skip to content

feat: make broadcast async for relays in relays_set engine#168

Merged
frnandu merged 3 commits intomasterfrom
fix-broadcast-async
May 30, 2025
Merged

feat: make broadcast async for relays in relays_set engine#168
frnandu merged 3 commits intomasterfrom
fix-broadcast-async

Conversation

@frnandu
Copy link
Collaborator

@frnandu frnandu commented May 29, 2025

fixes #166

@frnandu frnandu marked this pull request as ready for review May 29, 2025 11:50
@1-leo 1-leo self-requested a review May 29, 2025 12:18
@frnandu frnandu requested a review from 1-leo May 29, 2025 13:31
@codecov
Copy link

codecov bot commented May 29, 2025

Codecov Report

Attention: Patch coverage is 46.66667% with 8 lines in your changes missing coverage. Please review.

Project coverage is 70.79%. Comparing base (152aca4) to head (8427e42).
Report is 30 commits behind head on master.

Files with missing lines Patch % Lines
...s/ndk/lib/domain_layer/usecases/relay_manager.dart 0.00% 4 Missing ⚠️
...k/lib/domain_layer/usecases/relay_sets_engine.dart 63.63% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #168      +/-   ##
==========================================
- Coverage   70.93%   70.79%   -0.15%     
==========================================
  Files         118      118              
  Lines        4042     4050       +8     
==========================================
  Hits         2867     2867              
- Misses       1175     1183       +8     

☔ 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.

@frnandu frnandu self-assigned this May 29, 2025
@1-leo 1-leo moved this to In Progress in ndk-dev May 30, 2025
@1-leo 1-leo added this to ndk-dev May 30, 2025
}

/// use this to signal a failed broadcast
void failBroadcast(String nostrEventId, String relay, String msg) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe name this deregister?
So its more clear that you need to register and deregister on fail

@frnandu frnandu merged commit 63ddc96 into master May 30, 2025
1 of 3 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in ndk-dev May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

fix: connection to a bad relay blocking broadcast

2 participants