Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
VihasMakwana committed Nov 1, 2024
1 parent cb59bc4 commit 38cd221
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/stanza/fileconsumer/internal/tracker/tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func (t *fileTracker) writeArchive(index int, rmds *fileset.Fileset[*reader.Meta
}

func (t *fileTracker) FindFiles(records []*Record) {
// FindFiles goes through archive, one fileset at a time and tries to match all fingerprints agains that loaded set.
// FindFiles goes through archive, one fileset at a time and tries to match all fingerprints against that loaded set.

// To minimize disk access, we first access the index, then review unmatched files and update the metadata, if found.
// We exit if no new reader exists.
Expand All @@ -217,7 +217,7 @@ func (t *fileTracker) FindFiles(records []*Record) {
}
for _, record := range records {
if md := data.Match(record.Fingerprint, fileset.StartsWith); md != nil && record.Metadata != nil {
// update a record's metadata with the matched metadata.
// populate record's metadata with the matched metadata, to indicate a successful match.
modified = true
record.Metadata = md
foundRecords++
Expand Down

0 comments on commit 38cd221

Please sign in to comment.