fix iOS build issue

This commit is contained in:
Simon Laux
2023-12-12 02:15:57 +01:00
committed by bjoern
parent 1b7c5be9c5
commit ea2a692d18

View File

@@ -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(())
}