Skip to content

Commit

Permalink
fix: remove persist check
Browse files Browse the repository at this point in the history
Signed-off-by: Elias Van Ootegem <elias@vega.xyz>
  • Loading branch information
EVODelavega committed Apr 22, 2024
1 parent ed90880 commit efcc42a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions core/snapshot/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -752,10 +752,6 @@ func (e *Engine) snapshotNow(ctx context.Context, saveAsync bool) ([]byte, DoneC
e.log.Panic("Panic occurred", zap.Any("reason", r))
}
}()
// we do not need to save the version, just dump the file
if !persist {
return
}

if err := e.snapshotTree.SaveVersion(); err != nil {
// If this fails, we are screwed. The tree version is used to construct
Expand Down

0 comments on commit efcc42a

Please sign in to comment.