]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Remove premature initialization of Torrent.lastRequested
authorMatt Joiner <anacrolix@gmail.com>
Mon, 25 Jun 2018 04:03:22 +0000 (14:03 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Mon, 25 Jun 2018 04:03:22 +0000 (14:03 +1000)
client.go

index 6cc9597f8042000d7616b64dab18847dadac7eae..a8607feb6dc24cc75967b8af9124a9ad7489fa5f 100644 (file)
--- a/client.go
+++ b/client.go
@@ -975,7 +975,6 @@ func (cl *Client) newTorrent(ih metainfo.Hash, specStorage storage.ClientImpl) (
                metadataChanged: sync.Cond{
                        L: &cl.mu,
                },
-               lastRequested:           make(map[request]time.Time),
                duplicateRequestTimeout: 15 * time.Second,
        }
        t.logger = cl.logger.Clone().AddValue(t)