Skip to content

Commit

Permalink
fix(sv-publisher): Delete transactions none query
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Jan 28, 2025
1 parent 1b1083d commit 0fcb553
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions services/publisher/src/recover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ pub async fn recover_tx_status_none(
anyhow::anyhow!("Semaphore error: {}", e)
})?;

let block_height_str = block_height.to_string();
let sealed_block = fuel_core.get_sealed_block(block_height.into()).map_err(|e| {
tracing::error!("Failed to get sealed block #{}: {}", block_height, e);
anyhow::anyhow!("Get sealed block error: {}", e)
Expand All @@ -78,7 +77,7 @@ pub async fn recover_tx_status_none(
sqlx::query(
"DELETE FROM transactions WHERE block_height = $1 AND tx_status = 'none'"
)
.bind(block_height_str)
.bind(block_height)
.execute(&db.pool)
.await
.map_err(|e| {
Expand Down

0 comments on commit 0fcb553

Please sign in to comment.