mirror of
https://github.com/chatmail/core.git
synced 2026-05-12 03:16:29 +03:00
fix iOS build issue
This commit is contained in:
@@ -314,7 +314,7 @@ impl Accounts {
|
|||||||
/// Performs a background fetch for all accounts in parallel with a timeout.
|
/// Performs a background fetch for all accounts in parallel with a timeout.
|
||||||
///
|
///
|
||||||
/// If you want no timeout, then use [Accounts::background_fetch] instead.
|
/// If you want no timeout, then use [Accounts::background_fetch] instead.
|
||||||
pub async fn background_fetch_with_timeout(&self, timeout: Duration) -> Result<()> {
|
pub async fn background_fetch_with_timeout(&self, timeout: std::time::Duration) -> Result<()> {
|
||||||
tokio::time::timeout(timeout, self.background_fetch()).await?;
|
tokio::time::timeout(timeout, self.background_fetch()).await?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user