Relays scheduled job publish only connected relays#381
Conversation
WalkthroughThe changes in the pull request primarily involve modifications to the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
arkanoider
left a comment
There was a problem hiding this comment.
Great! That's exactly the fix we need.
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
- src/scheduler.rs (2 hunks)
🔇 Additional comments (2)
src/scheduler.rs (2)
12-12: LGTM
The import statement correctly includes Event, Kind (aliased as NostrKind), and Tag from nostr_sdk, which are necessary for the updated relay list functionality.
47-50: LGTM
The loop efficiently filters connected relays and constructs the relay tags for the event. The use of asynchronous is_connected().await ensures that only active connections are considered.
Summary by CodeRabbit
New Features
Bug Fixes
Refactor