src/server/rest.rs: use tokio::timer::delay
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
		@ -533,8 +533,7 @@ async fn delayed_response(
 | 
				
			|||||||
    resp: Response<Body>,
 | 
					    resp: Response<Body>,
 | 
				
			||||||
    delay_unauth_time: std::time::Instant,
 | 
					    delay_unauth_time: std::time::Instant,
 | 
				
			||||||
) -> Result<Response<Body>, Error> {
 | 
					) -> Result<Response<Body>, Error> {
 | 
				
			||||||
    tokio::timer::Delay::new(delay_unauth_time)
 | 
					    tokio::timer::delay(delay_unauth_time).await;
 | 
				
			||||||
        .await;
 | 
					 | 
				
			||||||
    Ok(resp)
 | 
					    Ok(resp)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user