fix naming convention
This commit is contained in:
parent
0ce9c0e288
commit
05b33f0243
5 changed files with 10 additions and 13 deletions
|
|
@ -70,12 +70,10 @@ macro_rules! create_commit_collection {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub mod my_spoor_session;
|
pub mod my_spoor_log_session;
|
||||||
pub use my_spoor_session::MySpoorSession;
|
pub use my_spoor_log_session::MySpoorLogSession;
|
||||||
pub mod my_spoor_activity;
|
pub mod my_spoor_log_activity;
|
||||||
pub use my_spoor_activity::MySpoorActivity;
|
pub use my_spoor_log_activity::MySpoorLogActivity;
|
||||||
pub mod app_bsky_post;
|
|
||||||
pub use app_bsky_post::AppBskyPost;
|
|
||||||
|
|
||||||
struct CommitIngestorState;
|
struct CommitIngestorState;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ async fn handle_delete(
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
create_commit_collection!(AppBskyPost, "app.bsky.feed.post".to_string(),
|
create_commit_collection!(AppBskyFeedPost, "app.bsky.feed.post".to_string(),
|
||||||
change => handle_change,
|
change => handle_change,
|
||||||
delete => handle_delete,
|
delete => handle_delete,
|
||||||
);
|
);
|
||||||
|
|
@ -24,7 +24,7 @@ async fn handle_delete(
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
create_commit_collection!(MySpoorActivity, Activity::NSID.to_string(),
|
create_commit_collection!(MySpoorLogActivity, Activity::NSID.to_string(),
|
||||||
change => handle_change,
|
change => handle_change,
|
||||||
delete => handle_delete,
|
delete => handle_delete,
|
||||||
);
|
);
|
||||||
|
|
@ -24,7 +24,7 @@ async fn handle_delete(
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
create_commit_collection!(MySpoorSession, Session::NSID.to_string(),
|
create_commit_collection!(MySpoorLogSession, Session::NSID.to_string(),
|
||||||
change => handle_change,
|
change => handle_change,
|
||||||
delete => handle_delete,
|
delete => handle_delete,
|
||||||
);
|
);
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
use crate::{
|
use crate::{
|
||||||
collections::{
|
collections::{
|
||||||
Collection,
|
Collection,
|
||||||
MySpoorActivity, MySpoorSession, AppBskyPost,
|
MySpoorLogActivity, MySpoorLogSession,
|
||||||
},
|
},
|
||||||
ingestor::Ingestor,
|
ingestor::Ingestor,
|
||||||
};
|
};
|
||||||
|
|
@ -15,8 +15,7 @@ async fn main() {
|
||||||
let _ = tracing::subscriber::set_global_default(subscriber);
|
let _ = tracing::subscriber::set_global_default(subscriber);
|
||||||
|
|
||||||
let mut ingestor = Ingestor::new();
|
let mut ingestor = Ingestor::new();
|
||||||
ingestor.add_collection(MySpoorActivity::new());
|
ingestor.add_collection(MySpoorLogActivity::new());
|
||||||
ingestor.add_collection(MySpoorSession::new());
|
ingestor.add_collection(MySpoorLogSession::new());
|
||||||
ingestor.add_collection(AppBskyPost::new());
|
|
||||||
ingestor.start().await;
|
ingestor.start().await;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue