add extract_meta pipeline

Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
This commit is contained in:
ゆめ 2024-10-16 19:14:43 -05:00
parent 6e8add8f70
commit 3b3cd8e8f3
No known key found for this signature in database
3 changed files with 8 additions and 5 deletions

1
yume-mods/nyuukyou/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
target/

View file

@ -410,7 +410,7 @@ checksum = "e8c02a5121d4ea3eb16a80748c74f5549a5665e4c21333c6098f283870fbdea6"
[[package]] [[package]]
name = "fedivet" name = "fedivet"
version = "0.1.0" version = "0.1.0"
source = "git+https://forge.yumechi.jp/yume/fedivet?tag=testing-audit#c67e647b113cfbcfa221f20481b33fd12de8cc99" source = "git+https://forge.yumechi.jp/yume/fedivet?tag=testing-audit#92abe7b368ab4e2a619e3f4bb838c8778734a545"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"axum", "axum",

View file

@ -29,7 +29,9 @@ async fn build_state<E: IntoResponse + Clone + Serialize + Send + Sync + 'static
base: Arc<BaseAppState<E>>, base: Arc<BaseAppState<E>>,
_args: &Args, _args: &Args,
) -> impl HasAppState<E> + Evaluator<E> { ) -> impl HasAppState<E> + Evaluator<E> {
base.audited(AuditOptions::new(PathBuf::from("/store/log/audit/incoming"))) base
.audited(AuditOptions::new(PathBuf::from("/store/log/audit/incoming")))
.extract_meta()
} }
#[tokio::main] #[tokio::main]
@ -42,9 +44,9 @@ async fn main() {
let args = Args::parse(); let args = Args::parse();
let state = build_state::<MisskeyError>( let state = build_state::<MisskeyError>(
Arc::new(BaseAppState::new( Arc::new(
args.backend.parse().expect("Invalid backend URL"), BaseAppState::new(args.backend.parse().expect("Invalid backend URL")).with_empty_ctx(),
)), ),
&args, &args,
) )
.await; .await;