Skip to content

Commit

Permalink
return when matching block number when pushing to cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduard-Voiculescu committed Nov 1, 2023
1 parent 492ddee commit ac754bf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions accountresolver/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,7 @@ func (r *KVDBAccountsResolver) pushToCache(blockNum uint64, key string, accounts
if cacheItems, found := r.cache[key]; found {
for _, ci := range cacheItems {
if ci.blockNum == blockNum {
continue
//ci.accounts = append(ci.accounts, accounts...)
//return
return
}
}
}
Expand Down

0 comments on commit ac754bf

Please sign in to comment.