Skip to content

Commit

Permalink
Remove ReportsProcessed DO
Browse files Browse the repository at this point in the history
  • Loading branch information
mendess committed Nov 22, 2023
1 parent 760b6c4 commit 1066290
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 373 deletions.
16 changes: 0 additions & 16 deletions daphne_worker/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,6 @@ pub(crate) struct DaphneWorkerConfig {
/// configured by the Leader.
pub(crate) helper_state_store_garbage_collect_after_secs: Option<Duration>,

/// Additional time to wait before deletng an instance of ReportsProcessed. Added to the value
/// of the `report_storage_epoch_duration` field of the global DAP configuration.
pub(crate) processed_alarm_safety_interval: Duration,

/// Metrics push configuration.
metrics_push_config: Option<MetricsPushConfig>,
}
Expand Down Expand Up @@ -281,17 +277,6 @@ impl DaphneWorkerConfig {
None
};

let processed_alarm_safety_interval = Duration::from_secs(
env.var("DAP_PROCESSED_ALARM_SAFETY_INTERVAL")?
.to_string()
.parse()
.map_err(|err| {
worker::Error::RustError(format!(
"Failed to parse DAP_PROCESSED_ALARM_SAFETY_INTERVAL: {err}"
))
})?,
);

const DAP_METRICS_PUSH_SERVER_URL: &str = "DAP_METRICS_PUSH_SERVER_URL";
const DAP_METRICS_PUSH_BEARER_TOKEN: &str = "DAP_METRICS_PUSH_BEARER_TOKEN";
let metrics_push_config = match (
Expand Down Expand Up @@ -331,7 +316,6 @@ impl DaphneWorkerConfig {
taskprov,
default_version,
helper_state_store_garbage_collect_after_secs,
processed_alarm_safety_interval,
metrics_push_config,
})
}
Expand Down
1 change: 0 additions & 1 deletion daphne_worker/src/durable/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ pub(crate) mod leader_agg_job_queue;
pub(crate) mod leader_batch_queue;
pub(crate) mod leader_col_job_queue;
pub(crate) mod reports_pending;
pub(crate) mod reports_processed;

use crate::{
int_err, now,
Expand Down
317 changes: 0 additions & 317 deletions daphne_worker/src/durable/reports_processed.rs

This file was deleted.

Loading

0 comments on commit 1066290

Please sign in to comment.