Skip to content

Commit

Permalink
fix(prover): config (#2165)
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`.
- [ ] Spellcheck has been run via `zk spellcheck`.

Signed-off-by: Danil <[email protected]>
  • Loading branch information
Deniallugo authored Jun 6, 2024
1 parent 24b8f93 commit e5daf8e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion prover/prover_fri_gateway/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ use prover_dal::{ConnectionPool, Prover};
use reqwest::Client;
use tokio::sync::{oneshot, watch};
use zksync_config::{
configs::{DatabaseSecrets, FriProverGatewayConfig, ObservabilityConfig, PostgresConfig},
configs::{
DatabaseSecrets, FriProverConfig, FriProverGatewayConfig, ObservabilityConfig,
PostgresConfig,
},
ObjectStoreConfig,
};
use zksync_core_leftovers::temp_config_store::{decode_yaml_repr, TempConfigStore};
Expand Down Expand Up @@ -153,6 +156,7 @@ fn load_env_config() -> anyhow::Result<TempConfigStore> {
fri_prover_gateway_config: FriProverGatewayConfig::from_env().ok(),
object_store_config: ObjectStoreConfig::from_env().ok(),
observability: ObservabilityConfig::from_env().ok(),
fri_prover_config: FriProverConfig::from_env().ok(),
..Default::default()
})
}

0 comments on commit e5daf8e

Please sign in to comment.