2
0
mirror of synced 2025-02-24 14:48:27 +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{ metadataChanged: sync.Cond{
L: &cl.mu, L: &cl.mu,
}, },
lastRequested: make(map[request]time.Time),
duplicateRequestTimeout: 15 * time.Second, duplicateRequestTimeout: 15 * time.Second,
} }
t.logger = cl.logger.Clone().AddValue(t) t.logger = cl.logger.Clone().AddValue(t)