config: integration mock added
parent
c607bdc0d6
commit
1e65db7ca5
|
|
@ -1 +1,16 @@
|
|||
// mock
|
||||
use tokio::sync::mpsc::Sender;
|
||||
use integr_structs::api::ApiConfig;
|
||||
use anyhow::Result;
|
||||
use tokio::time::{sleep, Duration};
|
||||
// mock
|
||||
|
||||
#[allow(dead_code, unused_variables)]
|
||||
pub async fn init_integration_mech(tx: &Sender<ApiConfig>) -> Result<()> {
|
||||
loop {
|
||||
sleep(Duration::from_secs(10)).await;
|
||||
let conf = ApiConfig::default();
|
||||
tx.send(conf).await?;
|
||||
}
|
||||
// Ok(())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue