Ingestor refactor complete baby~
This commit is contained in:
parent
23ba006b8f
commit
079e8c5831
3 changed files with 48 additions and 37 deletions
|
|
@ -1,3 +1,10 @@
|
|||
use crate::{
|
||||
collections::{
|
||||
Collection,
|
||||
MySpoorActivity, MySpoorSession,
|
||||
},
|
||||
ingestor::Ingestor,
|
||||
};
|
||||
|
||||
mod ingestor;
|
||||
mod collections;
|
||||
|
|
@ -7,5 +14,8 @@ 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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue