diff --git a/packages/fuel-indexer-database/postgres/src/lib.rs b/packages/fuel-indexer-database/postgres/src/lib.rs index 561171bf4..ce44d44ad 100644 --- a/packages/fuel-indexer-database/postgres/src/lib.rs +++ b/packages/fuel-indexer-database/postgres/src/lib.rs @@ -552,7 +552,7 @@ pub async fn load_block_data( pub async fn remove_block_data( conn: &mut PoolConnection, ) -> sqlx::Result { - execute_query(conn, format!("DELETE FROM index_block_data;")).await + execute_query(conn, "DELETE FROM index_block_data;".to_string()).await } /// Return all indexers registered to this indexer serivce. diff --git a/packages/fuel-indexer/src/commands/run.rs b/packages/fuel-indexer/src/commands/run.rs index 798948745..2f78bf5c0 100644 --- a/packages/fuel-indexer/src/commands/run.rs +++ b/packages/fuel-indexer/src/commands/run.rs @@ -117,6 +117,7 @@ pub async fn exec(args: IndexerArgs) -> anyhow::Result<()> { )); }; + #[allow(unused)] let (tx, rx) = channel::(defaults::SERVICE_REQUEST_CHANNEL_SIZE); if config.run_migrations { diff --git a/plugins/forc-index/src/ops/forc_index_start.rs b/plugins/forc-index/src/ops/forc_index_start.rs index 8f93d98ce..764df908a 100644 --- a/plugins/forc-index/src/ops/forc_index_start.rs +++ b/plugins/forc-index/src/ops/forc_index_start.rs @@ -39,7 +39,8 @@ pub async fn init(command: StartCommand) -> anyhow::Result<()> { remove_data, accept_sql_queries, block_page_size, - enable_block_store: _, + enable_block_store, + remove_stored_blocks, } = command; let mut cmd = Command::new("fuel-indexer"); @@ -92,6 +93,8 @@ pub async fn init(command: StartCommand) -> anyhow::Result<()> { ("--auth-enabled", auth_enabled), ("--verbose", verbose), ("--local-fuel-node", local_fuel_node), + ("--enable-block-store", enable_block_store), + ("--remove-stored-blocks", remove_stored_blocks), ]; for (opt, value) in options.iter() { if *value {