aboutsummaryrefslogtreecommitdiffstats
path: root/eth/downloader/queue.go
diff options
context:
space:
mode:
authorWenbiao Zheng <delweng@gmail.com>2018-10-23 19:21:16 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-10-23 19:21:16 +0800
commit3088c122d8497acf176f03a3f19f6292e817cab7 (patch)
treee3f823a83fc603b6a7b96b91de6f05c1d153a083 /eth/downloader/queue.go
parent88b41a9e680a764aa079051aa7c71b3c6879d60a (diff)
downloadgo-tangerine-3088c122d8497acf176f03a3f19f6292e817cab7.tar
go-tangerine-3088c122d8497acf176f03a3f19f6292e817cab7.tar.gz
go-tangerine-3088c122d8497acf176f03a3f19f6292e817cab7.tar.bz2
go-tangerine-3088c122d8497acf176f03a3f19f6292e817cab7.tar.lz
go-tangerine-3088c122d8497acf176f03a3f19f6292e817cab7.tar.xz
go-tangerine-3088c122d8497acf176f03a3f19f6292e817cab7.tar.zst
go-tangerine-3088c122d8497acf176f03a3f19f6292e817cab7.zip
eth/downloader: fix comment typos (#17956)
Diffstat (limited to 'eth/downloader/queue.go')
-rw-r--r--eth/downloader/queue.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/eth/downloader/queue.go b/eth/downloader/queue.go
index a0e8a6d48..c6b635aff 100644
--- a/eth/downloader/queue.go
+++ b/eth/downloader/queue.go
@@ -143,7 +143,7 @@ func (q *queue) Reset() {
q.resultOffset = 0
}
-// Close marks the end of the sync, unblocking WaitResults.
+// Close marks the end of the sync, unblocking Results.
// It may be called even if the queue is already closed.
func (q *queue) Close() {
q.lock.Lock()
@@ -545,7 +545,7 @@ func (q *queue) reserveHeaders(p *peerConnection, count int, taskPool map[common
taskQueue.Push(header, -int64(header.Number.Uint64()))
}
if progress {
- // Wake WaitResults, resultCache was modified
+ // Wake Results, resultCache was modified
q.active.Signal()
}
// Assemble and return the block download request
@@ -857,7 +857,7 @@ func (q *queue) deliver(id string, taskPool map[common.Hash]*types.Header, taskQ
taskQueue.Push(header, -int64(header.Number.Uint64()))
}
}
- // Wake up WaitResults
+ // Wake up Results
if accepted > 0 {
q.active.Signal()
}