p2p/discover: fix comment typos

This commit is contained in:
Felix Lange 2019-10-18 12:24:32 +02:00
parent 497220ec4a
commit d487c421e0

View file

@ -179,11 +179,11 @@ func (it *lookupIterator) Node() *enode.Node {
// Next moves to the next node. // Next moves to the next node.
func (it *lookupIterator) Next() bool { func (it *lookupIterator) Next() bool {
// Consume next node in lastReply. // Consume next node in buffer.
if len(it.buffer) > 0 { if len(it.buffer) > 0 {
it.buffer = it.buffer[1:] it.buffer = it.buffer[1:]
} }
// Advance the lookup to refill lastReply. // Advance the lookup to refill the buffer.
for len(it.buffer) == 0 { for len(it.buffer) == 0 {
if it.ctx.Err() != nil { if it.ctx.Err() != nil {
it.lookup = nil it.lookup = nil