proxmox-rest-server: improve docs

And renames abort_worker_async to abort_worker_nowait (avoid confusion,
because the function itself is not async).
This commit is contained in:
Dietmar Maurer
2021-09-30 10:33:57 +02:00
parent c76ff4b472
commit 2e44983a37
6 changed files with 66 additions and 17 deletions

View File

@ -374,7 +374,7 @@ fn stop_task(
user_info.check_privs(&auth_id, &["system", "tasks"], PRIV_SYS_MODIFY, false)?;
}
proxmox_rest_server::abort_worker_async(upid);
proxmox_rest_server::abort_worker_nowait(upid);
Ok(Value::Null)
}