diff --git a/crates/iota-node/src/lib.rs b/crates/iota-node/src/lib.rs index 22922a1e13e..4f576913840 100644 --- a/crates/iota-node/src/lib.rs +++ b/crates/iota-node/src/lib.rs @@ -579,9 +579,7 @@ impl IotaNode { None }; - let rest_index = if is_full_node - && config.enable_rest_api - && config.enable_index_processing + let rest_index = if is_full_node && config.enable_rest_api && config.enable_index_processing { Some(Arc::new(RestIndexStore::new( config.db_path().join("rest_index"),