mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-12 06:53:46 +00:00
eth/downloader: improve comment
This commit is contained in:
parent
420935469d
commit
ac085e02a2
1 changed files with 2 additions and 2 deletions
|
|
@ -309,8 +309,8 @@ func (s *stateSync) process(req *stateReq) (nproc int, err error) {
|
||||||
// Put unfulfilled tasks back.
|
// Put unfulfilled tasks back.
|
||||||
for hash, task := range req.tasks {
|
for hash, task := range req.tasks {
|
||||||
if len(req.response) > 0 || req.timedOut() {
|
if len(req.response) > 0 || req.timedOut() {
|
||||||
// Ensure that the item will be retried if the response contained some data or
|
// Ensure that the item will be retried because it may have been excluded due
|
||||||
// timed out.
|
// to a protocol limit.
|
||||||
delete(task.triedPeers, req.peer.id)
|
delete(task.triedPeers, req.peer.id)
|
||||||
}
|
}
|
||||||
if npeers := s.d.peers.Len(); len(task.triedPeers) >= npeers {
|
if npeers := s.d.peers.Len(); len(task.triedPeers) >= npeers {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue