eth/downloader: improve comment

This commit is contained in:
Felix Lange 2017-05-30 12:34:36 +02:00 committed by Péter Szilágyi
parent 420935469d
commit ac085e02a2
No known key found for this signature in database
GPG key ID: E9AE538CEDF8293D

View file

@ -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 {