Skip to content

Commit

Permalink
fix(contract verifier): Fix config values (#2510)
Browse files Browse the repository at this point in the history
## What ❔

<!-- What are the changes this PR brings about? -->
<!-- Example: This PR adds a PR template to the repo. -->
<!-- (For bigger PRs adding more context is appreciated) -->

## Why ❔

<!-- Why are these changes done? What goal do they contribute to? What
are the principles behind them? -->
<!-- Example: PR templates ensure PR reviewers, observers, and future
iterators are in context about the evolution of repos. -->

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [ ] 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 <deniallugo@gmail.com>
  • Loading branch information
Deniallugo authored Jul 26, 2024
1 parent e2fa86f commit 3729468
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/lib/contract_verifier/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::{
Expand Down Expand Up @@ -524,11 +523,10 @@ impl JobProcessor for ContractVerifier {
started_at: Instant,
) -> tokio::task::JoinHandle<anyhow::Result<()>> {
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;
Expand Down

0 comments on commit 3729468

Please sign in to comment.