1
0
Fork 0
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 ()

This commit is contained in:
chris 2024-05-27 18:17:07 +02:00 committed by GitHub
parent 8d0c5c05eb
commit 4452519689
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.