mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-25 00:00:23 +02:00
docs: update deprecated TimeoutLayer::new in graceful-shutdown example (#3647)
This commit is contained in:
@@ -123,6 +123,7 @@ fn admin_routes() -> Router<SharedState> {
|
||||
state.write().unwrap().db.remove(&key);
|
||||
}
|
||||
|
||||
#[allow(deprecated)] // FIXME
|
||||
Router::new()
|
||||
.route("/keys", delete(delete_all_keys))
|
||||
.route("/key/{key}", delete(remove_key))
|
||||
|
||||
Reference in New Issue
Block a user