Commit 86ecdcd5 authored by obscuren's avatar obscuren

downloader: reset hashTtl on receive

parent 71aa5fe8
......@@ -211,6 +211,8 @@ out:
for {
select {
case hashes := <-d.hashCh:
failureResponse.Reset(hashTtl)
var done bool // determines whether we're done fetching hashes (i.e. common hash found)
hashSet := set.New()
for _, hash := range hashes {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment