Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrav committed Feb 2, 2024
1 parent 007a09b commit c295857
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,9 @@ func (e *Engine) verificationOverlapWorker(ctx context.Context) {
wgDoneFn: wgDetect.Done,
}, res)

// Remove the detector from the list of detectors with results.
// Remove the detector key from the list of detector keys with results.
// This is to ensure that the chunk is not reprocessed with verification enabled
// for this detector.
delete(detectorKeysWithResults, detector.Key)
}
chunkSecrets[key] = struct{}{}
Expand All @@ -706,7 +708,7 @@ func (e *Engine) verificationOverlapWorker(ctx context.Context) {
ctx.Logger().Info("detector not found", "key", key)
continue
}

wgDetect.Add(1)
chunk.chunk.Verify = e.verify
e.detectableChunksChan <- detectableChunk{
Expand Down

0 comments on commit c295857

Please sign in to comment.