mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-10-23 03:28:09 +03:00
Apply duration_suboptimal_units lint findings (#7144)
Quote from lint description: "Using a smaller unit for a duration that is evenly divisible by a larger unit reduces readability. Readers have to mentally convert values, which can be error-prone and makes the code less clear."
This commit is contained in:
1 parent
7883da554e
commit
454b8e2a35
5 files changed
+5
-4
No files matched your search
+1
-1
@@ -734,7 +734,7 @@ where
|
||||
|
||||
warn!("Can't connect to database, retrying: {e:?}");
|
||||
|
||||
sleep(Duration::from_millis(1_000)).await;
|
||||
sleep(Duration::from_secs(1)).await;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user