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
  • Loading branch information
andymck committed Aug 14, 2023
1 parent ac4b861 commit 1fc76a1
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 1fc76a1

Please sign in to comment.