pub fn from_env() -> Self {
        let prepare_data_interval =
            Duration::from_millis(parse_env("PROVER_PREPARE_DATA_INTERVAL"));
        let heartbeat_interval = Duration::from_millis(parse_env("PROVER_HEARTBEAT_INTERVAL"));
        let cycle_wait = Duration::from_millis(parse_env("PROVER_CYCLE_WAIT"));
        let gone_timeout = Duration::from_millis(parse_env("PROVER_GONE_TIMEOUT"));

        Self {
            prepare_data_interval,
            heartbeat_interval,
            cycle_wait,
            gone_timeout,
        }
    }
/// Parses the configuration options values from the environment variables.
/// Panics if any of options is missing or has inappropriate value.
Parses the configuration options values from the environment variables.
Panics if any of options is missing or has inappropriate value.
Parses the configuration options values from the environment variables . Panics if any of options is missing or has inappropriate value .
pub fn from_env() -> Self {
        let prepare_data_interval =
            Duration::from_millis(parse_env("PROVER_PREPARE_DATA_INTERVAL"));
        let heartbeat_interval = Duration::from_millis(parse_env("PROVER_HEARTBEAT_INTERVAL"));
        let cycle_wait = Duration::from_millis(parse_env("PROVER_CYCLE_WAIT"));
        let gone_timeout = Duration::from_millis(parse_env("PROVER_GONE_TIMEOUT"));
        Self {
            prepare_data_interval,
            heartbeat_interval,
            cycle_wait,
            gone_timeout,
        }
    }
pub fn from_env ( ) -> Self { let prepare_data_interval = Duration :: from_millis ( parse_env ( " " ) ) ; let heartbeat_interval = Duration :: from_millis ( parse_env ( " " ) ) ; let cycle_wait = Duration :: from_millis ( parse_env ( " " ) ) ; let gone_timeout = Duration :: from_millis ( parse_env ( " " ) ) ; Self { prepare_data_interval , heartbeat_interval , cycle_wait , gone_timeout , } }
Parses the configuration options values from the environment variables.
Parses the configuration options values from the environment variables .