Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update graceful shutdown example #2355

Merged
merged 3 commits into from
Nov 26, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update examples/graceful-shutdown/src/main.rs
Co-authored-by: Jonas Platte <[email protected]>
davidpdrsn and jplatte authored Nov 26, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 9f55c3bc0b519b2692ffcbd08334f96e49cf4128
2 changes: 1 addition & 1 deletion examples/graceful-shutdown/src/main.rs
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@ async fn main() {
// Clone the watch receiver and move it into the task.
let close_rx = close_rx.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 serve multiple connections
// concurrently.
tokio::spawn(async move {
// Hyper has its own `AsyncRead` and `AsyncWrite` traits and doesn't use tokio.