checkpoint

This commit is contained in:
David Pedersen
2021-12-31 15:25:35 +01:00
parent 044d35d193
commit e3d5b13eea
7 changed files with 130 additions and 63 deletions
+2 -1
View File
@@ -39,7 +39,8 @@ async fn main() {
let mut app = Router::new()
.route("/", get(handler))
.into_make_service_with_connect_info::<SocketAddr, _>();
.into_make_service()
.with_connect_info::<SocketAddr, _>();
loop {
let stream = poll_fn(|cx| Pin::new(&mut listener).poll_accept(cx))