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 5f707c4975
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]]
name = "fedivet"
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#f1c07410894741da28b12d2af425ccc7c1f6fd8d"
dependencies = [
"async-trait",
"axum",

View file

@ -29,7 +29,9 @@ async fn build_state<E: IntoResponse + Clone + Serialize + Send + Sync + 'static
base: Arc<BaseAppState<E>>,
_args: &Args,
) -> 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]
@ -42,9 +44,9 @@ async fn main() {
let args = Args::parse();
let state = build_state::<MisskeyError>(
Arc::new(BaseAppState::new(
args.backend.parse().expect("Invalid backend URL"),
)),
Arc::new(
BaseAppState::new(args.backend.parse().expect("Invalid backend URL")).with_empty_ctx(),
),
&args,
)
.await;