This commit is contained in:
parent
f444137684
commit
cdc3ac4064
@ -18,6 +18,7 @@ use tokio::sync::RwLock;
|
|||||||
pub const PKG_NAME: &str = env!("CARGO_PKG_NAME");
|
pub const PKG_NAME: &str = env!("CARGO_PKG_NAME");
|
||||||
const BL_CHAN_SIZE: usize = 32;
|
const BL_CHAN_SIZE: usize = 32;
|
||||||
const WS_CHAN_SIZE: usize = 64;
|
const WS_CHAN_SIZE: usize = 64;
|
||||||
|
const LOOPSLEEP: u64 = 500;
|
||||||
|
|
||||||
pub async fn run() {
|
pub async fn run() {
|
||||||
let globalctx = Context::new().await;
|
let globalctx = Context::new().await;
|
||||||
@ -107,7 +108,7 @@ pub async fn run() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_val = sleep_ms(50) => {}
|
_val = sleep_ms(LOOPSLEEP) => {}
|
||||||
};
|
};
|
||||||
|
|
||||||
let ctxclone = Arc::clone(&ctxarc);
|
let ctxclone = Arc::clone(&ctxarc);
|
||||||
|
Loading…
Reference in New Issue
Block a user