core/state/snapshot: do not nil the fastcache in disklayer

This commit is contained in:
Martin Holst Swende 2023-10-20 11:02:41 +02:00
parent 692f0d7b2e
commit b187795c6c
No known key found for this signature in database
GPG key ID: 683B438C05A5DDF0

View file

@ -51,7 +51,6 @@ type diskLayer struct {
func (dl *diskLayer) Release() error { func (dl *diskLayer) Release() error {
if dl.cache != nil { if dl.cache != nil {
dl.cache.Reset() dl.cache.Reset()
dl.cache = nil
} }
return nil return nil
} }