Skip to content

Commit

Permalink
fix: warcinfo record ID might not be set properly
Browse files Browse the repository at this point in the history
  • Loading branch information
CorentinB committed Jan 30, 2025
1 parent bb443db commit 9eede8f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions warc.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,10 @@ func recordWriter(settings *RotatorSettings, records chan *RecordBatch, done cha
}

// Write the info record
currentWarcinfoRecordID, err := warcWriter.WriteInfoRecord(settings.WarcinfoContent)
currentWarcinfoRecordID, err = warcWriter.WriteInfoRecord(settings.WarcinfoContent)
if err != nil {
panic(err)
}
_ = currentWarcinfoRecordID

// If compression is enabled, we close the record's GZIP chunk
if settings.Compression != "" {
Expand Down

0 comments on commit 9eede8f

Please sign in to comment.