p2p, swarm, trie: avoid copying slices in loops (#17265)
This commit is contained in:
committed by
Péter Szilágyi
parent
de9b0660ac
commit
cf05ef9106
@ -355,7 +355,7 @@ func (tn *preminedTestnet) mine(target NodeID) {
|
||||
fmt.Printf(" target: %#v,\n", tn.target)
|
||||
fmt.Printf(" targetSha: %#v,\n", tn.targetSha)
|
||||
fmt.Printf(" dists: [%d][]NodeID{\n", len(tn.dists))
|
||||
for ld, ns := range tn.dists {
|
||||
for ld, ns := range &tn.dists {
|
||||
if len(ns) == 0 {
|
||||
continue
|
||||
}
|
||||
|
Reference in New Issue
Block a user