config: integration mock added

pull/3/head
prplV 2025-01-21 09:53:06 +03:00
parent c607bdc0d6
commit 1e65db7ca5
1 changed files with 16 additions and 1 deletions

View File

@ -1 +1,16 @@
use tokio::sync::mpsc::Sender;
use integr_structs::api::ApiConfig;
use anyhow::Result;
use tokio::time::{sleep, Duration};
// mock // 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(())
}