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 e78f631 commit c9dce0bCopy full SHA for c9dce0b
p2p/enode/iter.go
@@ -88,6 +88,8 @@ func (it *sliceIter) Next() bool {
88
}
89
90
func (it *sliceIter) Node() *Node {
91
+ it.mu.Lock()
92
+ defer it.mu.Unlock()
93
if len(it.nodes) == 0 {
94
return nil
95
0 commit comments