mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-18 00:00:15 +02:00
Fix typo in serve-with-hyper example (#2750)
This commit is contained in:
@@ -43,7 +43,7 @@ async fn serve_plain() {
|
||||
// We don't need to call `poll_ready` because `Router` is always ready.
|
||||
let tower_service = app.clone();
|
||||
|
||||
// Spawn a task to handle the connection. That way we can multiple connections
|
||||
// Spawn a task to handle the connection. That way we can handle multiple connections
|
||||
// concurrently.
|
||||
tokio::spawn(async move {
|
||||
// Hyper has its own `AsyncRead` and `AsyncWrite` traits and doesn't use tokio.
|
||||
|
||||
Reference in New Issue
Block a user