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:
@ -345,7 +345,7 @@ impl HttpClient {
|
||||
|
||||
let renewal_future = async move {
|
||||
loop {
|
||||
tokio::time::delay_for(Duration::new(60*15, 0)).await; // 15 minutes
|
||||
tokio::time::sleep(Duration::new(60*15, 0)).await; // 15 minutes
|
||||
let (auth_id, ticket) = {
|
||||
let authinfo = auth2.read().unwrap().clone();
|
||||
(authinfo.auth_id, authinfo.ticket)
|
||||
|
Reference in New Issue
Block a user