Change INTERVAL type to u64

This commit is contained in:
binarybaron 2023-09-28 14:46:12 +02:00
parent c9a7970ab4
commit 780d117a69

View file

@ -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(())?;