Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
apoorvsadana committed May 24, 2024
1 parent 859bacf commit 0f3c6c3
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 19 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ name: Workflow - Pull Request
on:
workflow_dispatch:
pull_request:
branches: [main]
branches: [ main ]
push:
branches: [main]
branches: [ main ]

jobs:
linters:
Expand All @@ -20,4 +20,8 @@ jobs:
linters_cargo:
name: Run Cargo linters
uses: ./.github/workflows/linters-cargo.yml

coverage:
name: Run coverage
uses: ./.github/workflows/coverage.yml
needs: rust_build
2 changes: 1 addition & 1 deletion crates/da_clients/da-client-interface/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use async_trait::async_trait;
use color_eyre::Result;
use starknet::core::types::FieldElement;
use mockall::{automock, predicate::*};
use starknet::core::types::FieldElement;

#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub enum DaVerificationStatus {
Expand Down
4 changes: 2 additions & 2 deletions crates/orchestrator/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ use crate::database::mongodb::config::MongoDbConfig;
use crate::database::mongodb::MongoDb;
use crate::database::{Database, DatabaseConfig};
use crate::queue::sqs::SqsQueue;
use crate::queue::{QueueProvider};
use crate::queue::QueueProvider;
use crate::utils::env_utils::get_env_var_or_panic;
use da_client_interface::{DaClient};
use da_client_interface::DaClient;
use da_client_interface::DaConfig;
use dotenvy::dotenv;
use ethereum_da_client::config::EthereumDaConfig;
Expand Down
2 changes: 1 addition & 1 deletion crates/orchestrator/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use dotenvy::dotenv;
use orchestrator::config::config;
use orchestrator::queue::init_consumers;
use orchestrator::routes::app_router;
use orchestrator::utils::env_utils::get_env_var_or_default;
use dotenvy::dotenv;

/// Start the server
#[tokio::main]
Expand Down
2 changes: 0 additions & 2 deletions crates/orchestrator/src/tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ pub mod constants;
use constants::*;
use rstest::*;


use std::collections::HashMap;
use std::sync::Arc;

Expand All @@ -12,7 +11,6 @@ use crate::{
jobs::types::{ExternalId, JobItem, JobStatus::Created, JobType::DataSubmission},
};


use crate::database::MockDatabase;
use crate::queue::MockQueueProvider;
use ::uuid::Uuid;
Expand Down
2 changes: 0 additions & 2 deletions crates/orchestrator/src/tests/database/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


use rstest::*;

#[rstest]
Expand Down
14 changes: 5 additions & 9 deletions crates/orchestrator/src/tests/jobs/da_job/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,18 @@ use starknet::core::types::StateUpdate;

use std::collections::HashMap;


use httpmock::prelude::*;
use serde_json::{json};
use serde_json::json;

use super::super::common::{default_job_item, init_config};
use starknet_core::types::{FieldElement, MaybePendingStateUpdate, StateDiff};
use uuid::Uuid;


use crate::jobs::types::ExternalId;
use crate::{
jobs::{
da_job::DaJob,
types::{JobItem, JobStatus, JobType},
Job,
},
use crate::jobs::{
da_job::DaJob,
types::{JobItem, JobStatus, JobType},
Job,
};
use da_client_interface::{DaVerificationStatus, MockDaClient};

Expand Down

0 comments on commit 0f3c6c3

Please sign in to comment.