Skip to content

Commit

Permalink
review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
poszu committed Jul 19, 2024
1 parent fa42311 commit 4b449cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mesh/mesh.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ func (msh *Mesh) recoverFromDB(latest types.LayerID) {

if applied.After(types.GetEffectiveGenesis()) {
if err = msh.executor.Revert(context.Background(), applied); err != nil {
msh.logger.Fatal("failed to load state for layer", msh.LatestLayerInState().Field().Zap(), zap.Error(err))
msh.logger.Fatal("failed to load state for layer",
zap.Error(err),
zap.Uint32("layer", msh.LatestLayerInState().Uint32()),
)

Check warning on line 137 in mesh/mesh.go

View check run for this annotation

Codecov / codecov/patch

mesh/mesh.go#L134-L137

Added lines #L134 - L137 were not covered by tests
}
}
msh.logger.Info("recovered mesh from disk",
Expand Down

0 comments on commit 4b449cb

Please sign in to comment.