Skip to content

Commit

Permalink
Merge pull request #6011 from yaohcn/fix-health-report
Browse files Browse the repository at this point in the history
fix health report
  • Loading branch information
magik6k authored Apr 11, 2021
2 parents 1e6bba5 + 844d1d3 commit 73bbd3d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions extern/sector-storage/stores/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ func (i *Index) StorageReportHealth(ctx context.Context, id ID, report HealthRep
ent.fsi = report.Stat
if report.Err != "" {
ent.heartbeatErr = errors.New(report.Err)
} else {
ent.heartbeatErr = nil
}
ent.lastHeartbeat = time.Now()

Expand Down

0 comments on commit 73bbd3d

Please sign in to comment.