Skip to content

Commit

Permalink
feat(snos_job): Sync with main
Browse files Browse the repository at this point in the history
  • Loading branch information
akhercha committed Jul 22, 2024
1 parent e8ababa commit a57698e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions crates/orchestrator/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pub async fn init_config() -> Config {
let settings_provider = DefaultSettingsProvider {};
let settlement_client = build_settlement_client(&settings_provider).await;
let prover_client = build_prover_service(&settings_provider);
let storage_client = build_storage_client().await;
let storage = build_storage_client().await;

Config::new(
Arc::new(provider),
Expand All @@ -79,12 +79,13 @@ pub async fn init_config() -> Config {
settlement_client,
database,
queue,
storage_client
storage,
)
}

impl Config {
/// Create a new config
#[allow(clippy::too_many_arguments)]
pub fn new(
starknet_client: Arc<JsonRpcClient<HttpTransport>>,
http_rpc_client: Arc<HttpRpcClient>,
Expand Down
2 changes: 1 addition & 1 deletion crates/orchestrator/src/tests/jobs/snos_job/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use crate::jobs::{
#[rstest]
#[tokio::test]
async fn test_create_job() {
let config = init_config(None, None, None, None, None, None).await;
let config = init_config(None, None, None, None, None, None, None).await;

let job = SnosJob.create_job(&config, String::from("0"), HashMap::default()).await;
assert!(job.is_ok());
Expand Down

0 comments on commit a57698e

Please sign in to comment.