fix health report
This commit is contained in:
parent
1e6bba5388
commit
844d1d364d
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