From ea2a692d1856977ea82868124ff9412bdfe2a49c Mon Sep 17 00:00:00 2001 From: Simon Laux Date: Tue, 12 Dec 2023 02:15:57 +0100 Subject: [PATCH] fix iOS build issue --- src/accounts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/accounts.rs b/src/accounts.rs index 0cad4ffee..de4daab57 100644 --- a/src/accounts.rs +++ b/src/accounts.rs @@ -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(()) }