Upgrade reports before merging

In case they came from an older or an overload probe.
This commit is contained in:
Bryan Boreham
2020-04-16 19:27:40 +00:00
parent b772fa83b3
commit fa4d1c4c2b

View File

@@ -704,6 +704,7 @@ func (c *awsCollector) Add(ctx context.Context, rep report.Report, buf []byte) e
return err
}
} else {
rep = c.massageReport(userid, rep)
entry := &pendingEntry{report: report.MakeReport()}
if e, found := c.pending.LoadOrStore(userid, entry); found {
entry = e.(*pendingEntry)