Skip to content

Commit

Permalink
fix: use empty map instead of nil value for setting BaseApp.snapshotM…
Browse files Browse the repository at this point in the history
…anager.extensions (#12031) (#12458)
  • Loading branch information
faddat authored Jul 5, 2022
1 parent 0d4fd41 commit c7c6588
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions snapshots/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ var ErrOptsZeroSnapshotInterval = errors.New("snaphot-interval must not be 0")

// NewManager creates a new manager.
func NewManager(store *Store, opts types.SnapshotOptions, multistore types.Snapshotter, extensions map[string]types.ExtensionSnapshotter, logger log.Logger) *Manager {
if extensions == nil {
extensions = map[string]types.ExtensionSnapshotter{}
}
return &Manager{
store: store,
opts: opts,
Expand Down

0 comments on commit c7c6588

Please sign in to comment.