21 lines
471 B
Rust
21 lines
471 B
Rust
use crate::{
|
|
collections::{
|
|
Collection,
|
|
MySpoorActivity, MySpoorSession,
|
|
},
|
|
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(MySpoorActivity::new());
|
|
ingestor.add_collection(MySpoorSession::new());
|
|
ingestor.start().await;
|
|
}
|