mirror of
https://git.proxmox.com/git/proxmox
synced 2025-05-21 12:11:55 +00:00
src/server/rest.rs: use tokio::timer::delay
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
9b7434ba15
commit
a19a6f1b37
@ -533,8 +533,7 @@ async fn delayed_response(
|
||||
resp: Response<Body>,
|
||||
delay_unauth_time: std::time::Instant,
|
||||
) -> Result<Response<Body>, Error> {
|
||||
tokio::timer::Delay::new(delay_unauth_time)
|
||||
.await;
|
||||
tokio::timer::delay(delay_unauth_time).await;
|
||||
Ok(resp)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user