From cbc1b8140bc80fe5eaf2a3e64cf34289fda7d1a9 Mon Sep 17 00:00:00 2001 From: jimboj Date: Tue, 3 Sep 2024 15:55:20 +0900 Subject: [PATCH] feedback --- lib/runtime/storage/storagediff.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/runtime/storage/storagediff.go b/lib/runtime/storage/storagediff.go index 5a95ac0dba8..d2d3dddf441 100644 --- a/lib/runtime/storage/storagediff.go +++ b/lib/runtime/storage/storagediff.go @@ -142,7 +142,7 @@ func (cs *storageDiff) clearPrefixInChild(keyToChild string, prefix []byte, // indicating if all keys with the prefix were removed. func (cs *storageDiff) clearPrefix(prefix []byte, trieKeys []string, limit int) (deleted uint32, allDeleted bool) { newKeys := maps.Keys(cs.upserts) - keysToClear := newKeys + keysToClear := maps.Keys(cs.upserts) for _, k := range trieKeys { if _, ok := cs.upserts[k]; !ok { keysToClear = append(keysToClear, k)