We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d273d81 commit 94a0320Copy full SHA for 94a0320
trie/tracer.go
@@ -18,7 +18,6 @@ package trie
18
19
import (
20
"maps"
21
- "slices"
22
"sync"
23
)
24
@@ -147,18 +146,10 @@ func (t *prevalueTracer) hasList(list [][]byte) []bool {
147
146
}
148
149
// values returns a list of values of the cached trie nodes.
150
-func (t *prevalueTracer) values() [][]byte {
+func (t *prevalueTracer) values() map[string][]byte {
151
t.lock.RLock()
152
defer t.lock.RUnlock()
153
154
- return slices.Collect(maps.Values(t.data))
155
-}
156
-
157
-func (t *prevalueTracer) keys() []string {
158
- return slices.Collect(maps.Keys(t.data))
159
160
161
-func (t *prevalueTracer) getMap() map[string][]byte {
162
return maps.Clone(t.data)
163
164
0 commit comments