Skip to content

Commit

Permalink
widen both sides of the witness loader window to 2x ingestor roll up …
Browse files Browse the repository at this point in the history
…time (#599)
  • Loading branch information
andymck committed Aug 17, 2023
1 parent b07ee4a commit 1da4e73
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions iot_verifier/src/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,17 @@ impl Loader {
// this is to allow for a witness being in a rolled up file
// from just before or after the beacon files
// the width extention needs to be at least equal to that
// of the ingestor roll up time
// of the ingestor roll up time plus a buffer
// to account for the potential of the ingestor write time for
// witness reports being out of sync with that of beacon files
// for witnesses we do need the filter but not the arc
match self
.process_events(
FileType::IotWitnessIngestReport,
&self.ingest_store,
gateway_cache,
after - self.ingestor_rollup_time,
before + self.ingestor_rollup_time,
after - (self.ingestor_rollup_time + ChronoDuration::seconds(120)),
before + (self.ingestor_rollup_time + ChronoDuration::seconds(120)),
None,
Some(&filter),
)
Expand Down

0 comments on commit 1da4e73

Please sign in to comment.