From 39db847714b222c58ec707623f6869564d9c4816 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C4=99drzej=20Kula?= <kula.jedrek@gmail.com>
Date: Mon, 29 Aug 2022 10:01:37 +0200
Subject: [PATCH] Additional constraints for NotificationSender (#12121)

Co-authored-by: Jedrzej Kula <jedrzej.kula@cardinals.cc>
---
 substrate/client/network/common/src/service.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/substrate/client/network/common/src/service.rs b/substrate/client/network/common/src/service.rs
index 0fff32b12d6..6df99acf0bd 100644
--- a/substrate/client/network/common/src/service.rs
+++ b/substrate/client/network/common/src/service.rs
@@ -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)
-- 
GitLab