Additional constraints for NotificationSender (#12121)

Co-authored-by: Jedrzej Kula <jedrzej.kula@cardinals.cc>
This commit is contained in:
Jędrzej Kula
2022-08-29 10:01:37 +02:00
committed by GitHub
parent 8d481f55c3
commit 39db847714
@@ -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)