Skip to content

Commit

Permalink
Add log message before Carmen close (Fantom-foundation#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
thaarok authored May 17, 2024
1 parent 836c2ed commit 7ac5342
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gossip/evmstore/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,12 @@ func (s *Store) Close() error {
s.EvmLogs.Close()

if s.liveStateDb != nil {
s.Log.Info("Closing State DB...")
err := s.liveStateDb.Close()
if err != nil {
return fmt.Errorf("failed to close Carmen State: %w", err)
return fmt.Errorf("failed to close State DB: %w", err)
}
s.Log.Info("State DB closed")
s.carmenState = nil
s.liveStateDb = nil
}
Expand Down

0 comments on commit 7ac5342

Please sign in to comment.