22 lines
483 B
Rust
22 lines
483 B
Rust
|
|
use crate::{
|
||
|
|
collections::{
|
||
|
|
Collection,
|
||
|
|
MySpoorLogActivity, MySpoorLogSession,
|
||
|
|
},
|
||
|
|
ingestor::Ingestor,
|
||
|
|
};
|
||
|
|
|
||
|
|
mod ingestor;
|
||
|
|
mod collections;
|
||
|
|
|
||
|
|
#[tokio::main]
|
||
|
|
async fn main() {
|
||
|
|
let subscriber = tracing_subscriber::FmtSubscriber::new();
|
||
|
|
let _ = tracing::subscriber::set_global_default(subscriber);
|
||
|
|
|
||
|
|
let mut ingestor = Ingestor::new();
|
||
|
|
ingestor.add_collection(MySpoorLogActivity::new());
|
||
|
|
ingestor.add_collection(MySpoorLogSession::new());
|
||
|
|
ingestor.start().await;
|
||
|
|
}
|