diff --git a/packages/fuel-indexer-database/src/queries.rs b/packages/fuel-indexer-database/src/queries.rs index faf3dde8f..1983d2282 100644 --- a/packages/fuel-indexer-database/src/queries.rs +++ b/packages/fuel-indexer-database/src/queries.rs @@ -247,13 +247,9 @@ pub async fn load_block_data( } /// Remove all stored `BlockData` from the database. -pub async fn remove_block_data( - conn: &mut IndexerConnection, -) -> sqlx::Result { +pub async fn remove_block_data(conn: &mut IndexerConnection) -> sqlx::Result { match conn { - IndexerConnection::Postgres(ref mut c) => { - postgres::remove_block_data(c).await - } + IndexerConnection::Postgres(ref mut c) => postgres::remove_block_data(c).await, } } diff --git a/packages/fuel-indexer-lib/src/config/mod.rs b/packages/fuel-indexer-lib/src/config/mod.rs index 3fb6ae7e8..737ae39e6 100644 --- a/packages/fuel-indexer-lib/src/config/mod.rs +++ b/packages/fuel-indexer-lib/src/config/mod.rs @@ -334,7 +334,7 @@ impl From for IndexerConfig { accept_sql_queries: args.accept_sql_queries, block_page_size: defaults::NODE_BLOCK_PAGE_SIZE, enable_block_store: defaults::ENABLE_BLOCK_STORE, - remove_stored_blocks: defaults::REMOVE_STORED_BLOCKS + remove_stored_blocks: defaults::REMOVE_STORED_BLOCKS, }; config diff --git a/packages/fuel-indexer-lib/src/defaults.rs b/packages/fuel-indexer-lib/src/defaults.rs index ff8ee976a..08885847d 100644 --- a/packages/fuel-indexer-lib/src/defaults.rs +++ b/packages/fuel-indexer-lib/src/defaults.rs @@ -139,4 +139,4 @@ pub const ACCEPT_SQL: bool = false; pub const ENABLE_BLOCK_STORE: bool = false; /// Remove all stored blocks from the database. -pub const REMOVE_STORED_BLOCKS: bool = false; \ No newline at end of file +pub const REMOVE_STORED_BLOCKS: bool = false;