mirror of
https://github.com/tokio-rs/axum.git
synced 2025-04-26 13:56:22 +02:00
Fix typo in serve-with-hyper example (#2750)
This commit is contained in:
parent
8d0c5c05eb
commit
4452519689
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue