Skip to content

Commit

Permalink
Clippy & fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzejkop committed Jan 10, 2024
1 parent d4f89dc commit 11d94ed
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
9 changes: 5 additions & 4 deletions src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -141,7 +139,10 @@ impl Database {
.await?)
}

pub async fn get_relayers_by_chain_id(&self, chain_id: u64) -> eyre::Result<Vec<RelayerInfo>> {
pub async fn get_relayers_by_chain_id(
&self,
chain_id: u64,
) -> eyre::Result<Vec<RelayerInfo>> {
Ok(sqlx::query_as(
r#"
SELECT
Expand Down
6 changes: 5 additions & 1 deletion src/tasks/broadcast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 11d94ed

Please sign in to comment.