Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DaraDoyoung committed Oct 17, 2024
1 parent 6cb9c23 commit f5d3e16
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use async_trait::async_trait;
use diesel::{pg::Pg, query_builder::QueryFragment};
use rayon::prelude::*;
use std::fmt::Debug;
use tracing::{info, error};
use tracing::{error, info};

pub struct AccountTransactionsProcessor {
producer: CustomProducerEnum,
Expand Down Expand Up @@ -135,7 +135,10 @@ impl ProcessorTrait for AccountTransactionsProcessor {

let network = Network::from_chain_id(_db_chain_id.unwrap_or(0));
if network.is_none() {
bail!("Error getting network from chain id. Processor {}.", self.name())
bail!(
"Error getting network from chain id. Processor {}.",
self.name()
)
}
let topic_string = format!("aptos.{}.account.transactions", network.unwrap());
info!(
Expand Down
2 changes: 1 addition & 1 deletion rust/processor/src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
pub mod counters;
pub mod database;
pub mod mq;
pub mod util;
pub mod network;
pub mod util;
2 changes: 1 addition & 1 deletion rust/processor/src/utils/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ impl fmt::Display for Network {
Network::Testnet => write!(f, "testnet"),
}
}
}
}
4 changes: 2 additions & 2 deletions rust/processor/src/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -746,8 +746,8 @@ impl Worker {
AsyncConnectionWrapper::from(conn);
run_pending_migrations(&mut conn);
})
.await
.expect("[Parser] Failed to run migrations");
.await
.expect("[Parser] Failed to run migrations");
}

/// Gets the start version for the processor. If not found, start from 0.
Expand Down

0 comments on commit f5d3e16

Please sign in to comment.