Replace hyper::Server with axum::Server in docs (#118)

* Replace `hyper::Server` with `axum::Server` in docs

* Change readme as well
This commit is contained in:
David Pedersen
2021-08-04 15:38:51 +02:00
committed by GitHub
parent cffdedc055
commit 5c12328892
39 changed files with 90 additions and 90 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ async fn main() {
tracing::debug!("listening on {}", addr);
hyper::Server::bind(&addr)
axum::Server::bind(&addr)
.serve(app().into_make_service())
.await
.unwrap();
@@ -113,7 +113,7 @@ mod tests {
let addr = listener.local_addr().unwrap();
tokio::spawn(async move {
hyper::Server::from_tcp(listener)
axum::Server::from_tcp(listener)
.unwrap()
.serve(app().into_make_service())
.await