From 3729468436114642e62ce8a531533921015455a7 Mon Sep 17 00:00:00 2001 From: Danil Date: Fri, 26 Jul 2024 17:48:11 +0200 Subject: [PATCH] fix(contract verifier): Fix config values (#2510) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## What ❔ ## Why ❔ ## Checklist - [ ] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [ ] Tests for the changes have been added / updated. - [ ] Documentation comments have been added / updated. - [ ] Code has been formatted via `zk fmt` and `zk lint`. --------- Signed-off-by: Danil --- core/lib/contract_verifier/src/lib.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/lib/contract_verifier/src/lib.rs b/core/lib/contract_verifier/src/lib.rs index 224d4b29234..30901729fc5 100644 --- a/core/lib/contract_verifier/src/lib.rs +++ b/core/lib/contract_verifier/src/lib.rs @@ -12,7 +12,6 @@ use regex::Regex; use tokio::time; use zksync_config::ContractVerifierConfig; use zksync_dal::{Connection, ConnectionPool, Core, CoreDal}; -use zksync_env_config::FromEnv; use zksync_queued_job_processor::{async_trait, JobProcessor}; use zksync_types::{ contract_verification_api::{ @@ -524,11 +523,10 @@ impl JobProcessor for ContractVerifier { started_at: Instant, ) -> tokio::task::JoinHandle> { let connection_pool = self.connection_pool.clone(); + let config = self.config.clone(); tokio::task::spawn(async move { tracing::info!("Started to process request with id = {}", job.id); - let config: ContractVerifierConfig = - ContractVerifierConfig::from_env().context("ContractVerifierConfig")?; let mut connection = connection_pool.connection().await.unwrap(); let job_id = job.id;