Skip to content

Commit

Permalink
Simplify expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamRagstad committed Apr 3, 2024
1 parent cffee4c commit 3902daa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 1 addition & 4 deletions src/engine/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -730,10 +730,7 @@ impl WXRuntime {
request,
addr,
respond_to,
} => {
let response = self.execute_route(request, addr);
respond_to.send(response).unwrap();
}
} => respond_to.send(self.execute_route(request, addr)).unwrap(),
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions src/engine/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ impl WXServer {
.build()?;
loop {
let (stream, addr) = listener.accept().await?;
let io = TokioIo::new(stream);
runtime.spawn(Self::serve(io, svc.clone_with_address(addr)));
runtime.spawn(Self::serve(
TokioIo::new(stream),
svc.clone_with_address(addr),
));
}
}

Expand Down

0 comments on commit 3902daa

Please sign in to comment.