Skip to content

Commit

Permalink
fix(prover): Remove unneeded dependencies, add default for graceful_s…
Browse files Browse the repository at this point in the history
…hutdown_timeout.

ref ZKD-1855
  • Loading branch information
yorik committed Nov 8, 2024
1 parent 4509179 commit 67ad182
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 0 additions & 2 deletions prover/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions prover/crates/bin/prover_autoscaler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ keywords.workspace = true
categories.workspace = true

[dependencies]
zksync_core_leftovers.workspace = true
zksync_vlog.workspace = true
zksync_utils.workspace = true
zksync_types.workspace = true
zksync_config = { workspace = true, features = ["observability_ext"] }
zksync_prover_job_monitor.workspace = true

Expand Down
5 changes: 4 additions & 1 deletion prover/crates/bin/prover_autoscaler/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ use zksync_config::configs::ObservabilityConfig;
#[derive(Debug, Clone, PartialEq, Deserialize)]
pub struct ProverAutoscalerConfig {
/// Amount of time ProverJobMonitor will wait all it's tasks to finish.
#[serde(with = "humantime_serde")]
#[serde(
with = "humantime_serde",
default = "ProverAutoscalerConfig::default_graceful_shutdown_timeout"
)]
pub graceful_shutdown_timeout: Duration,
pub agent_config: Option<ProverAutoscalerAgentConfig>,
pub scaler_config: Option<ProverAutoscalerScalerConfig>,
Expand Down

0 comments on commit 67ad182

Please sign in to comment.