mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 22:51:13 +00:00
Additional constraints for NotificationSender (#12121)
Co-authored-by: Jedrzej Kula <jedrzej.kula@cardinals.cc>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user