mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +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.
|
||||
///
|
||||
/// 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?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user