summaryrefslogtreecommitdiff
path: root/echo/src/main.rs
diff options
context:
space:
mode:
authorAria <me@aria.rip>2023-10-13 14:04:14 +0100
committerAria <me@aria.rip>2023-10-13 14:04:14 +0100
commitc063f4da42a538138cc3e80a0e1faaf813a13bd2 (patch)
tree9a927c20c420bfa32eed18aafa319362df706303 /echo/src/main.rs
parente9ae00db22f30fcf0cfa8f7e05232aed46efb39b (diff)
use global executor and some fixes
Diffstat (limited to 'echo/src/main.rs')
-rw-r--r--echo/src/main.rs6
1 files changed, 5 insertions, 1 deletions
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<Output = ()> + Send {
+ fn handle(
+ &self,
+ header: MessageHeader,
+ body: Self::Body,
+ ) -> impl Future<Output = ()> + Send + '_ {
async move {
match body {
EchoBody::Echo { msg_id, echo } => {