diff options
author | Oleg Kovalov <iamolegkovalov@gmail.com> | 2018-08-07 18:56:40 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-08-07 18:56:40 +0800 |
commit | cf05ef9106779da0df62c0c03312fc489171aaa5 (patch) | |
tree | a2d5185dea85a478895b799da81e41f8e383cb52 /p2p/discv5/net_test.go | |
parent | de9b0660acf26edc3b261b805c1a3454e3c76321 (diff) | |
download | go-tangerine-cf05ef9106779da0df62c0c03312fc489171aaa5.tar go-tangerine-cf05ef9106779da0df62c0c03312fc489171aaa5.tar.gz go-tangerine-cf05ef9106779da0df62c0c03312fc489171aaa5.tar.bz2 go-tangerine-cf05ef9106779da0df62c0c03312fc489171aaa5.tar.lz go-tangerine-cf05ef9106779da0df62c0c03312fc489171aaa5.tar.xz go-tangerine-cf05ef9106779da0df62c0c03312fc489171aaa5.tar.zst go-tangerine-cf05ef9106779da0df62c0c03312fc489171aaa5.zip |
p2p, swarm, trie: avoid copying slices in loops (#17265)
Diffstat (limited to 'p2p/discv5/net_test.go')
-rw-r--r-- | p2p/discv5/net_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/p2p/discv5/net_test.go b/p2p/discv5/net_test.go index 001d193cc..1a8137673 100644 --- a/p2p/discv5/net_test.go +++ b/p2p/discv5/net_test.go @@ -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 } |