near/audit: Fix go lint error

This commit is contained in:
Josh Siegel 2022-08-24 15:24:15 -05:00 committed by jumpsiegel
parent a752e1309c
commit 0384d31a9b
1 changed files with 5 additions and 2 deletions

View File

@ -351,7 +351,10 @@ func (e *Watcher) inspectBody(logger *zap.Logger, block uint64, body gjson.Resul
if round <= e.final_round {
logger.Info("parseStatus direct", zap.Uint64("block.height", round), zap.Uint64("e.final_round", e.final_round))
e.parseStatus(logger, t, hash.String(), ts)
err := e.parseStatus(logger, t, hash.String(), ts)
if err != nil {
return err
}
} else {
logger.Info("pushing pending",
zap.Uint64("block.height", round),
@ -444,7 +447,7 @@ func (e *Watcher) Run(ctx context.Context) error {
delete(e.pending, key)
if err != nil {
logger.Error(fmt.Sprintf("inspectStatus", err.Error()))
logger.Error("inspectStatus", zap.Error(err))
}
}
}