(supervisor: &State<Supervisor>)
| 82 | |
| 83 | #[post("/shutdown")] |
| 84 | async fn shutdown(supervisor: &State<Supervisor>) -> Json<Response<()>> { |
| 85 | to_json(perform_shutdown(supervisor, false).await) |
| 86 | } |
| 87 | |
| 88 | async fn perform_shutdown(supervisor: &Supervisor, force: bool) -> Result<()> { |
| 89 | info!("Shutting down supervisor"); |
nothing calls this directly
no test coverage detected