mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-28 15:46:43 +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.
|
||||
for hash, task := range req.tasks {
|
||||
if len(req.response) > 0 || req.timedOut() {
|
||||
// Ensure that the item will be retried if the response contained some data or
|
||||
// timed out.
|
||||
// Ensure that the item will be retried because it may have been excluded due
|
||||
// to a protocol limit.
|
||||
delete(task.triedPeers, req.peer.id)
|
||||
}
|
||||
if npeers := s.d.peers.Len(); len(task.triedPeers) >= npeers {
|
||||
|
|
|
|||
Loading…
Reference in a new issue