Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
lostman committed Sep 22, 2023
1 parent d746dc9 commit 2d3721a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
8 changes: 2 additions & 6 deletions packages/fuel-indexer-database/src/queries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<usize> {
pub async fn remove_block_data(conn: &mut IndexerConnection) -> sqlx::Result<usize> {
match conn {
IndexerConnection::Postgres(ref mut c) => {
postgres::remove_block_data(c).await
}
IndexerConnection::Postgres(ref mut c) => postgres::remove_block_data(c).await,
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/fuel-indexer-lib/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ impl From<ApiServerArgs> 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
Expand Down
2 changes: 1 addition & 1 deletion packages/fuel-indexer-lib/src/defaults.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
pub const REMOVE_STORED_BLOCKS: bool = false;

0 comments on commit 2d3721a

Please sign in to comment.