Additional constraints for NotificationSender (#12121)

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