chiark / gitweb /
Prep for hyper 1: Reorganise service_fn call
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 2 Feb 2025 13:36:24 +0000 (13:36 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 2 Feb 2025 13:56:34 +0000 (13:56 +0000)
commit3227841d7960e4cf3f5a19cc705f5cd89da4f0a2
treeddfad2fe5905dc679ff2420f1b4d111c270ed793
parent4b8d43c5576a5f59d3fdda9b1cfa7143c57840ef
Prep for hyper 1: Reorganise service_fn call

We're going to want this to be more static.  The future-lifted map
doesn't have the right lifetimes.  Instead, use an async block
and un-lifted unwrap_or_else.

This will reduce the size of the eventual diff.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
server/server.rs