]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Change the duplicateRequestTimeout to 1s
authorMatt Joiner <anacrolix@gmail.com>
Sat, 30 Jun 2018 11:10:48 +0000 (21:10 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Sat, 30 Jun 2018 11:10:48 +0000 (21:10 +1000)
client.go

index 327a0bd42f63bfad5bb0ee0b5236fe3c241a109d..0ab13be0eab1bb4d14a6e16791c9ef90d773d6c1 100644 (file)
--- 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)