Change the duplicateRequestTimeout to 1s

This commit is contained in:
Matt Joiner 2018-06-30 21:10:48 +10:00
parent 15f3c822c5
commit 5f20a21c9d
1 changed files with 1 additions and 1 deletions

View File

@ -975,7 +975,7 @@ func (cl *Client) newTorrent(ih metainfo.Hash, specStorage storage.ClientImpl) (
metadataChanged: sync.Cond{ metadataChanged: sync.Cond{
L: &cl.mu, L: &cl.mu,
}, },
duplicateRequestTimeout: 15 * time.Second, duplicateRequestTimeout: 1 * time.Second,
} }
t.logger = cl.logger.Clone().AddValue(t) t.logger = cl.logger.Clone().AddValue(t)
t.setChunkSize(defaultChunkSize) t.setChunkSize(defaultChunkSize)