forked from cerc-io/plugeth
p2p: initialize maps with known size (#27229)
This commit is contained in:
@@ -439,7 +439,7 @@ func testNodes(keys []*ecdsa.PrivateKey) []*enode.Node {
|
||||
type mapResolver map[string]string
|
||||
|
||||
func newMapResolver(maps ...map[string]string) mapResolver {
|
||||
mr := make(mapResolver)
|
||||
mr := make(mapResolver, len(maps))
|
||||
for _, m := range maps {
|
||||
mr.add(m)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user