Skip to content

Commit

Permalink
Revert "ethdb/memorydb: init map with known size (ethereum#27241)"
Browse files Browse the repository at this point in the history
This reverts commit 7f60d82.
  • Loading branch information
devopsbo3 authored Nov 10, 2023
1 parent f1c49b5 commit 137399c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethdb/memorydb/memorydb.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ func newSnapshot(db *Database) *snapshot {
db.lock.RLock()
defer db.lock.RUnlock()

copied := make(map[string][]byte, len(db.db))
copied := make(map[string][]byte)
for key, val := range db.db {
copied[key] = common.CopyBytes(val)
}
Expand Down

0 comments on commit 137399c

Please sign in to comment.