tokio 1.0: delay -> sleep

almost the same thing, new name(s), no longer Unpin

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler
2020-12-03 16:04:23 +01:00
parent 427d90e6c1
commit 0a8d773ad0
7 changed files with 15 additions and 15 deletions

View File

@ -41,7 +41,7 @@ pub async fn wait_for_local_worker(upid_str: &str) -> Result<(), Error> {
loop {
if proxmox_backup::server::worker_is_active_local(&upid) {
tokio::time::delay_for(sleep_duration).await;
tokio::time::sleep(sleep_duration).await;
} else {
break;
}