Add all connectors

This commit is contained in:
2025-03-17 21:11:36 +01:00
parent 64b672dc63
commit 56fbae6adc
20 changed files with 3505 additions and 24 deletions

View File

@ -0,0 +1,24 @@
use crate::app_config::AppConfig;
use std::time::Duration;
/// The "cron" of the project
pub async fn main_routine() {
loop {
tokio::time::sleep(Duration::from_secs(AppConfig::get().routine_interval)).await;
log::info!("Start to execute regular routine");
match exec_routine().await {
Ok(_) => {
log::info!("Routine successfully executed")
}
Err(e) => {
log::error!("Failed to execute routine! {e}");
}
}
}
}
async fn exec_routine() -> anyhow::Result<()> {
// TODO
Ok(())
}