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:
1 parent
427d90e6c1
commit
0a8d773ad0
7 files changed
+15
-15
No files matched your search
@@ -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