add extract_meta pipeline
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
This commit is contained in:
parent
6e8add8f70
commit
bd443b80e3
3 changed files with 8 additions and 5 deletions
1
yume-mods/nyuukyou/.gitignore
vendored
Normal file
1
yume-mods/nyuukyou/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
target/
|
2
yume-mods/nyuukyou/Cargo.lock
generated
2
yume-mods/nyuukyou/Cargo.lock
generated
|
@ -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#b6dea3fd06969b7d238c9d821f571be1386743e6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"axum",
|
"axum",
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue