Skip to content

Commit

Permalink
Chore: reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
zk-steve authored and Tranduy1dol committed Oct 16, 2024
1 parent 21864ac commit 1c65d17
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions crates/orchestrator/src/alerts/aws_sns/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ use crate::config::ProviderConfig;

pub const AWS_SNS_SETTINGS_NAME: &str = "sns";

use crate::alerts::Alerts;

pub struct AWSSNS {
client: Client,
topic_arn: String,
Expand Down
3 changes: 1 addition & 2 deletions crates/orchestrator/src/queue/job_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,7 @@ async fn get_delivery_from_queue(queue: &str, config: Arc<Config>) -> Result<Del
}

macro_rules! spawn_consumer {
($queue_type:expr, $handler:expr, $consume_function:expr, $config:expr) => {
let config_clone = $config.clone();
($queue_type :expr, $handler : expr, $consume_function: expr) => {
tokio::spawn(async move {
loop {
match $consume_function($queue_type, $handler, config_clone.clone()).await {
Expand Down
4 changes: 4 additions & 0 deletions crates/orchestrator/src/tests/data_storage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ use crate::data_storage::aws_s3::config::AWSS3Config;
use crate::data_storage::aws_s3::AWSS3;
use crate::data_storage::{DataStorage, DataStorageConfig};

use crate::data_storage::aws_s3::config::AWSS3Config;
use crate::data_storage::aws_s3::AWSS3;
use crate::data_storage::{DataStorage, DataStorageConfig};

/// This test checks the ability to put and get data from AWS S3 using `AWSS3`.
/// It puts JSON data into a test bucket and retrieves it, verifying the data
/// matches what was originally uploaded.
Expand Down
2 changes: 2 additions & 0 deletions crates/settlement-clients/aptos/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ aptos-testcontainer = { workspace = true }
async-trait = { workspace = true }
c-kzg = { workspace = true }
color-eyre = { workspace = true }
c-kzg = { workspace = true }
dotenvy = { workspace = true }
hex = { workspace = true }
lazy_static = { workspace = true }
Expand All @@ -21,6 +22,7 @@ once_cell = { workspace = true }
settlement-client-interface = { workspace = true }
tokio = { workspace = true }
utils = { workspace = true }
lazy_static = { workspace = true }

[dev-dependencies]
test-log = { workspace = true }
1 change: 1 addition & 0 deletions crates/settlement-clients/ethereum/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ use crate::clients::interfaces::validity_interface::StarknetValidityContractTrai
use crate::clients::StarknetValidityContractClient;
use crate::config::EthereumSettlementConfig;
use crate::conversion::{slice_u8_to_u256, vec_u8_32_to_vec_u256};

pub mod clients;
pub mod config;
pub mod conversion;
Expand Down

0 comments on commit 1c65d17

Please sign in to comment.