Commit 6abc5701 authored by David Vorick's avatar David Vorick

add files all at once, wait 15 minutes between adding filse multiple times

parent 66e0a6d3
......@@ -458,7 +458,7 @@ func (r *Renter) threadedQueueRepairs() {
}
r.mu.RUnlock(id)
// Add files one at a time.
// Add files.
for _, file := range files {
// Send the file down the repair channel.
select {
......@@ -466,19 +466,12 @@ func (r *Renter) threadedQueueRepairs() {
case <-r.tg.StopChan():
return
}
// Wait 5 seconds before going to the next file.
select {
case <-time.After(time.Second * 5):
case <-r.tg.StopChan():
return
}
}
// Chill out for an extra 5 minutes before going through the files
// Chill out for an extra 15 minutes before going through the files
// again.
select {
case <-time.After(time.Minute * 5):
case <-time.After(time.Minute * 15):
case <-r.tg.StopChan():
return
}
......
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