Skip to content

Commit 055d746

Browse files
committed
Cargo fmt
1 parent 3877e0c commit 055d746

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/queries.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ use sea_orm::{
1919
Statement,
2020
};
2121

22-
2322
pub async fn insert_block(block: &BlockRecord, db: &DatabaseConnection) -> anyhow::Result<i64> {
2423
let previous_hash = hex::decode(block.previous_hash.clone())?;
2524
let previous_block_model = block::Entity::find()
@@ -40,7 +39,6 @@ pub async fn insert_block(block: &BlockRecord, db: &DatabaseConnection) -> anyho
4039
Ok(block_model.id)
4140
}
4241

43-
4442
pub async fn rollback_to_slot(slot: &u64, db: &DatabaseConnection) -> anyhow::Result<()> {
4543
// We remove all blocks that are after the given slot. Removing based on the rollback event's
4644
// block_hash might not work because it's affected by the --start option and thus the
@@ -52,7 +50,6 @@ pub async fn rollback_to_slot(slot: &u64, db: &DatabaseConnection) -> anyhow::Re
5250
Ok(())
5351
}
5452

55-
5653
pub async fn insert_transaction(
5754
transaction: &TransactionRecord,
5855
block_id: i64,

0 commit comments

Comments
 (0)