From: Matt Joiner Date: Mon, 25 Jun 2018 04:03:22 +0000 (+1000) Subject: Remove premature initialization of Torrent.lastRequested X-Git-Tag: v1.0.0~121 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=7619994ef541156562b4a6a84849acb719b6efa8;p=btrtrc.git Remove premature initialization of Torrent.lastRequested --- diff --git a/client.go b/client.go index 6cc9597f..a8607feb 100644 --- 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)