From 780d117a6995973503b02f07545f1f9e4460bcd4 Mon Sep 17 00:00:00 2001 From: binarybaron Date: Thu, 28 Sep 2023 14:46:12 +0200 Subject: [PATCH] Change INTERVAL type to u64 --- swap/src/api.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swap/src/api.rs b/swap/src/api.rs index 6f44eaff..70a3dbdc 100644 --- a/swap/src/api.rs +++ b/swap/src/api.rs @@ -90,7 +90,7 @@ impl SwapLock { /// # Notes /// The 50ms polling interval is considered negligible overhead compared to the typical time required to suspend ongoing swap processes. pub async fn send_suspend_signal(&self) -> Result<(), Error> { - const TIMEOUT: u32 = 10_000; + const TIMEOUT: u64 = 10_000; const INTERVAL: u64 = 50; let _ = self.suspension_trigger.send(())?;