mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-10-23 18:28:10 +03:00
Update to diesel2
This commit is contained in:
36 files changed
+1267
-1270
No files matched your search
+4
-4
@@ -621,9 +621,9 @@ fn _process_key(key: &str) -> String {
|
||||
// Retry methods
|
||||
//
|
||||
|
||||
pub fn retry<F, T, E>(func: F, max_tries: u32) -> Result<T, E>
|
||||
pub fn retry<F, T, E>(mut func: F, max_tries: u32) -> Result<T, E>
|
||||
where
|
||||
F: Fn() -> Result<T, E>,
|
||||
F: FnMut() -> Result<T, E>,
|
||||
{
|
||||
let mut tries = 0;
|
||||
|
||||
@@ -642,9 +642,9 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn retry_db<F, T, E>(func: F, max_tries: u32) -> Result<T, E>
|
||||
pub async fn retry_db<F, T, E>(mut func: F, max_tries: u32) -> Result<T, E>
|
||||
where
|
||||
F: Fn() -> Result<T, E>,
|
||||
F: FnMut() -> Result<T, E>,
|
||||
E: std::error::Error,
|
||||
{
|
||||
let mut tries = 0;
|
||||
|
||||
Reference in new issue
Block a user