fix health report

This commit is contained in:
yaohcn 2021-04-11 14:47:04 +08:00
parent 1e6bba5388
commit 844d1d364d

View File

@ -184,6 +184,8 @@ func (i *Index) StorageReportHealth(ctx context.Context, id ID, report HealthRep
ent.fsi = report.Stat ent.fsi = report.Stat
if report.Err != "" { if report.Err != "" {
ent.heartbeatErr = errors.New(report.Err) ent.heartbeatErr = errors.New(report.Err)
} else {
ent.heartbeatErr = nil
} }
ent.lastHeartbeat = time.Now() ent.lastHeartbeat = time.Now()