From: Matt Joiner Date: Sat, 30 Jun 2018 11:10:48 +0000 (+1000) Subject: Change the duplicateRequestTimeout to 1s X-Git-Tag: v1.0.0~106 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=5f20a21c9d0b383aed0cd90933115ce7d95ee0e1;p=btrtrc.git Change the duplicateRequestTimeout to 1s --- diff --git a/client.go b/client.go index 327a0bd4..0ab13be0 100644 --- a/client.go +++ b/client.go @@ -975,7 +975,7 @@ func (cl *Client) newTorrent(ih metainfo.Hash, specStorage storage.ClientImpl) ( metadataChanged: sync.Cond{ L: &cl.mu, }, - duplicateRequestTimeout: 15 * time.Second, + duplicateRequestTimeout: 1 * time.Second, } t.logger = cl.logger.Clone().AddValue(t) t.setChunkSize(defaultChunkSize)