mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
p2p/discover: fix comment typos
This commit is contained in:
parent
497220ec4a
commit
d487c421e0
1 changed files with 2 additions and 2 deletions
|
|
@ -179,11 +179,11 @@ func (it *lookupIterator) Node() *enode.Node {
|
|||
|
||||
// Next moves to the next node.
|
||||
func (it *lookupIterator) Next() bool {
|
||||
// Consume next node in lastReply.
|
||||
// Consume next node in buffer.
|
||||
if len(it.buffer) > 0 {
|
||||
it.buffer = it.buffer[1:]
|
||||
}
|
||||
// Advance the lookup to refill lastReply.
|
||||
// Advance the lookup to refill the buffer.
|
||||
for len(it.buffer) == 0 {
|
||||
if it.ctx.Err() != nil {
|
||||
it.lookup = nil
|
||||
|
|
|
|||
Loading…
Reference in a new issue