diff --git a/crates/driver/src/infra/config/file/load.rs b/crates/driver/src/infra/config/file/load.rs index 137d162042..4fdbfc55bd 100644 --- a/crates/driver/src/infra/config/file/load.rs +++ b/crates/driver/src/infra/config/file/load.rs @@ -111,7 +111,7 @@ pub async fn load(chain: chain::Id, path: &Path) -> infra::Config { enable_simulation_based_bad_token_detection: config .enable_simulation_bad_token_detection, enable_metrics_based_bad_token_detection: config - .enable_heuristic_based_bad_token_detection, + .enable_metrics_based_bad_token_detection, }, } })) diff --git a/crates/driver/src/infra/config/file/mod.rs b/crates/driver/src/infra/config/file/mod.rs index d9cb151632..b3d307e291 100644 --- a/crates/driver/src/infra/config/file/mod.rs +++ b/crates/driver/src/infra/config/file/mod.rs @@ -279,9 +279,9 @@ struct SolverConfig { enable_simulation_bad_token_detection: bool, /// Whether or not the solver opted into detecting unsupported - /// tokens with heuristic based detection. + /// tokens with metrics-based detection. #[serde(default)] - enable_heuristic_based_bad_token_detection: bool, + enable_metrics_based_bad_token_detection: bool, } #[derive(Clone, Copy, Debug, Default, Deserialize, PartialEq, Serialize)]