From c063f4da42a538138cc3e80a0e1faaf813a13bd2 Mon Sep 17 00:00:00 2001 From: Aria Date: Fri, 13 Oct 2023 14:04:14 +0100 Subject: use global executor and some fixes --- echo/src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'echo') diff --git a/echo/src/main.rs b/echo/src/main.rs index fed0059..424a538 100644 --- a/echo/src/main.rs +++ b/echo/src/main.rs @@ -37,7 +37,11 @@ impl Handler for EchoHandler { EchoHandler { output } } - fn handle(&self, header: MessageHeader, body: Self::Body) -> impl Future + Send { + fn handle( + &self, + header: MessageHeader, + body: Self::Body, + ) -> impl Future + Send + '_ { async move { match body { EchoBody::Echo { msg_id, echo } => { -- cgit v1.2.3