Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lostman committed Sep 22, 2023
1 parent 2d3721a commit bd10230
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/fuel-indexer-database/postgres/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ pub async fn load_block_data(
pub async fn remove_block_data(
conn: &mut PoolConnection<Postgres>,
) -> sqlx::Result<usize> {
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.
Expand Down
1 change: 1 addition & 0 deletions packages/fuel-indexer/src/commands/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ pub async fn exec(args: IndexerArgs) -> anyhow::Result<()> {
));
};

#[allow(unused)]
let (tx, rx) = channel::<ServiceRequest>(defaults::SERVICE_REQUEST_CHANNEL_SIZE);

if config.run_migrations {
Expand Down
5 changes: 4 additions & 1 deletion plugins/forc-index/src/ops/forc_index_start.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit bd10230

Please sign in to comment.