From 54f83fe513fbff110e6288b1a86889e9e2471726 Mon Sep 17 00:00:00 2001 From: hyunki Date: Mon, 5 Oct 2026 13:29:08 +0900 Subject: [PATCH] chore: remove unused top-level finalize configuration --- examples/lib/src/main.rs | 1 - src/bin/oura/dump.rs | 1 - src/bin/oura/watch.rs | 1 - src/daemon/mod.rs | 3 --- src/framework/mod.rs | 1 - 5 files changed, 7 deletions(-) diff --git a/examples/lib/src/main.rs b/examples/lib/src/main.rs index 1b369aeb..f967b6a3 100644 --- a/examples/lib/src/main.rs +++ b/examples/lib/src/main.rs @@ -40,7 +40,6 @@ fn main() -> Result<(), Box> { let ctx = Context { chain, intersect, - finalize: None, current_dir, breadcrumbs, }; diff --git a/src/bin/oura/dump.rs b/src/bin/oura/dump.rs index e4847937..506554b0 100644 --- a/src/bin/oura/dump.rs +++ b/src/bin/oura/dump.rs @@ -49,7 +49,6 @@ pub fn run(args: &Args) -> Result<(), Error> { filters: Some(vec![filter]), sink, intersect, - finalize: None, chain: Some(chain), retries: None, cursor: None, diff --git a/src/bin/oura/watch.rs b/src/bin/oura/watch.rs index 75689be2..582477fe 100644 --- a/src/bin/oura/watch.rs +++ b/src/bin/oura/watch.rs @@ -46,7 +46,6 @@ pub fn run(args: &Args) -> Result<(), Error> { filters: Some(vec![filter]), sink, intersect, - finalize: None, chain: Some(chain), retries: None, cursor: None, diff --git a/src/daemon/mod.rs b/src/daemon/mod.rs index 0411321c..4073856b 100644 --- a/src/daemon/mod.rs +++ b/src/daemon/mod.rs @@ -15,7 +15,6 @@ pub struct ConfigRoot { pub filters: Option>, pub sink: sinks::Config, pub intersect: IntersectConfig, - pub finalize: Option, pub chain: Option, pub retries: Option, pub cursor: Option, @@ -94,14 +93,12 @@ fn connect_stages( pub fn run_daemon(config: ConfigRoot) -> Result { let chain = config.chain.unwrap_or_default(); let intersect = config.intersect; - let finalize = config.finalize; let current_dir = std::env::current_dir().unwrap(); let cursor = config.cursor.unwrap_or_default(); let breadcrumbs = cursor.initial_load()?; let ctx = Context { chain, intersect, - finalize, current_dir, breadcrumbs, }; diff --git a/src/framework/mod.rs b/src/framework/mod.rs index 12706b99..95d004c2 100644 --- a/src/framework/mod.rs +++ b/src/framework/mod.rs @@ -91,7 +91,6 @@ impl From for GenesisValues { pub struct Context { pub chain: ChainConfig, pub intersect: IntersectConfig, - pub finalize: Option, pub current_dir: PathBuf, pub breadcrumbs: Breadcrumbs, }