2
0
mirror of synced 2025-02-23 22:28:11 +00:00

Remove premature initialization of Torrent.lastRequested

This commit is contained in:
Matt Joiner 2018-06-25 14:03:22 +10:00
parent 0330b87288
commit 7619994ef5

View File

@ -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)