added forced timeout
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Paul 2023-01-15 20:03:32 +01:00
parent 72d377f53f
commit a84d3d0ed8

View File

@ -14,6 +14,7 @@ use std::collections::HashMap;
use std::sync::Arc;
use tokio::sync::mpsc::{channel, Receiver, Sender};
use tokio::sync::RwLock;
use tokio::time::sleep;
pub const PKG_NAME: &str = env!("CARGO_PKG_NAME");
const BL_CHAN_SIZE: usize = 32;
@ -68,6 +69,7 @@ pub async fn run() {
//let mut received_ip = ipdatarx.recv();
let ipdata_wait = ipeventrx.recv();
let apimsg_wait = apirx.recv();
let force_wait = sleep(tokio::time::Duration::from_millis(200));
let ctxclone = Arc::clone(&ctxarc);
@ -106,6 +108,7 @@ pub async fn run() {
}
_val = apimsg_wait => {
}
_val = force_wait => {}
};
let toblock;