From b8494f1536509e33fce56092e6c7d901f65bbae9 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 5a95ac0dba..d2d3dddf44 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)