satellite/audit: do not report offline to overlay (#3547)

This commit is contained in:
paul cannon 2019-12-18 04:51:24 -06:00 committed by GitHub
parent 366f4b9493
commit af24581ac0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,9 @@ import (
"storj.io/storj/satellite/overlay"
)
// We do not report offline nodes to the overlay at this time; see V3-3025.
const reportOfflineDuringAudit = false
// Reporter records audit reports in overlay and implements the reporter interface
//
// architecture: Service
@ -85,7 +88,8 @@ func (reporter *Reporter) RecordAudits(ctx context.Context, req Report, path sto
errlist.Add(err)
}
}
if len(offlines) > 0 {
// We do not report offline nodes to the overlay at this time; see V3-3025.
if len(offlines) > 0 && reportOfflineDuringAudit {
offlines, err = reporter.recordOfflineStatus(ctx, offlines)
if err != nil {
errlist.Add(err)