From b2d679f05d04052bfc25167eaaf09c60c03251cb Mon Sep 17 00:00:00 2001 From: Aria Date: Fri, 13 Oct 2023 14:13:58 +0100 Subject: wip: fault tolerant broadcast --- common/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common') diff --git a/common/src/lib.rs b/common/src/lib.rs index d58d10b..69a872b 100644 --- a/common/src/lib.rs +++ b/common/src/lib.rs @@ -22,11 +22,11 @@ pub trait Handler: Send + Sync + 'static { type Body: Serialize + for<'a> Deserialize<'a> + Send + Clone; fn init(node_id: String, node_ids: Vec, output: Output) -> Self; - fn handle( - &self, + fn handle<'a>( + self: &'a Arc, header: MessageHeader, body: Self::Body, - ) -> impl Future + Send + '_; + ) -> impl Future + Send + 'a; } pub fn run_server() { -- cgit v1.2.3