added forced timeout
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
72d377f53f
commit
a84d3d0ed8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user