Remove premature initialization of Torrent.lastRequested
This commit is contained in:
parent
0330b87288
commit
7619994ef5
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user