Skip to content

Commit

Permalink
Worker should always send compressed header
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhallett committed Feb 7, 2024
1 parent 707af8b commit f46e563
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions cmd/worker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
)

func report_job(repoId string, beginDate time.Time, endDate time.Time, platform string, publisher string, publisherId string) error {
addCompressedHeader := false
addCompressedHeader := true

// Get keeshond configuration from environment variables.
var config = app.GetConfigFromEnv()
Expand Down Expand Up @@ -66,16 +66,6 @@ func report_job(repoId string, beginDate time.Time, endDate time.Time, platform
return err
}

// Write report to file
// filename := "report_" + repoId + "_" + beginDate.Format("2006-01-02") + "_" + endDate.Format("2006-01-02") + "_" + platform + "_" + publisher + "_" + publisherId + "_" + string(index) + ".json"
// file, err := os.Create(filename)
// if err != nil {
// return err
// }
// defer file.Close()

//file.Write(reportJson)

// Gzip json
compressedJson, _ := gzipData(reportJson)

Expand Down

0 comments on commit f46e563

Please sign in to comment.