Skip to content
Snippets Groups Projects
Commit 39db8477 authored by Jędrzej Kula's avatar Jędrzej Kula Committed by GitHub
Browse files

Additional constraints for NotificationSender (#12121)


Co-authored-by: default avatarJedrzej Kula <jedrzej.kula@cardinals.cc>
parent 8d481f55
No related merge requests found
......@@ -387,7 +387,7 @@ pub trait NotificationSenderReady {
/// A `NotificationSender` allows for sending notifications to a peer with a chosen protocol.
#[async_trait::async_trait]
pub trait NotificationSender {
pub trait NotificationSender: Send + Sync + 'static {
/// Returns a future that resolves when the `NotificationSender` is ready to send a
/// notification.
async fn ready(&self)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment