Add serve function and remove Server re-export (#1868)

This commit is contained in:
David Pedersen
2023-03-23 20:25:36 +01:00
parent 2ae0cdf7cf
commit d153719bef
86 changed files with 641 additions and 564 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ mod unix {
tokio::spawn(async {
let app = Router::new().route("/", get(handler));
axum::Server::builder(ServerAccept { uds })
hyper::Server::builder(ServerAccept { uds })
.serve(app.into_make_service_with_connect_info::<UdsConnectInfo>())
.await
.unwrap();