Merge pull request #6011 from yaohcn/fix-health-report
fix health report
This commit is contained in:
commit
73bbd3d98a
2
extern/sector-storage/stores/index.go
vendored
2
extern/sector-storage/stores/index.go
vendored
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user