mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-11-30 20:46:33 -05:00
fix compile issues for tests and use serial_test crate
This commit is contained in:
parent
9b08f71bb8
commit
ccf9b0c31f
5 changed files with 24 additions and 34 deletions
|
|
@ -90,8 +90,8 @@ 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: i32 = 10_000;
|
||||
const INTERVAL: i32 = 50;
|
||||
const TIMEOUT: u64 = 10_000;
|
||||
const INTERVAL: u64 = 50;
|
||||
|
||||
let _ = self.suspension_trigger.send(())?;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue