Skip to content

Commit

Permalink
fix closer assignment (#536)
Browse files Browse the repository at this point in the history
## Describe your changes and provide context
This properly assigns closers when adding them so that scStore is
properly closed after statesync snapshot.

## Testing performed to validate your change
Verified on statesyncer node in arctic-1
  • Loading branch information
udpatil authored Aug 28, 2024
1 parent f364e37 commit 947de5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store/cachemulti/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func (cms Store) CacheMultiStoreForExport(_ int64) (types.CacheMultiStore, error
panic("Not implemented")
}

func (cms Store) AddCloser(closer io.Closer) {
func (cms *Store) AddCloser(closer io.Closer) {
cms.closers = append(cms.closers, closer)
}

Expand Down

0 comments on commit 947de5a

Please sign in to comment.