diff --git a/src/db.rs b/src/db.rs index f3419ba..43f9b9e 100644 --- a/src/db.rs +++ b/src/db.rs @@ -14,9 +14,7 @@ use crate::types::{RelayerInfo, RelayerUpdate, TransactionPriority}; pub mod data; -use self::data::{ - AddressWrapper, BlockFees, H256Wrapper, NetworkStats, ReadTxData, RpcKind, -}; +use self::data::{BlockFees, H256Wrapper, NetworkStats, ReadTxData, RpcKind}; pub use self::data::{TxForEscalation, TxStatus, UnsentTx}; // Statically link in migration files @@ -141,7 +139,10 @@ impl Database { .await?) } - pub async fn get_relayers_by_chain_id(&self, chain_id: u64) -> eyre::Result> { + pub async fn get_relayers_by_chain_id( + &self, + chain_id: u64, + ) -> eyre::Result> { Ok(sqlx::query_as( r#" SELECT diff --git a/src/tasks/broadcast.rs b/src/tasks/broadcast.rs index 1689dac..999e7db 100644 --- a/src/tasks/broadcast.rs +++ b/src/tasks/broadcast.rs @@ -146,7 +146,11 @@ async fn broadcast_relayer_txs( match pending_tx { Ok(pending_tx) => { - tracing::info!(tx_id = tx.id, ?pending_tx, "Transaction sent successfully"); + tracing::info!( + tx_id = tx.id, + ?pending_tx, + "Transaction sent successfully" + ); } Err(err) => { tracing::error!(tx_id = tx.id, error = ?err, "Failed to send transaction");