Skip to content

Commit

Permalink
near/audit: Fix go lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
jumpsiegel committed Aug 25, 2022
1 parent a752e13 commit 0384d31
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions node/pkg/near/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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))
}
}
}
Expand Down

0 comments on commit 0384d31

Please sign in to comment.