From: Matt Joiner Date: Mon, 13 Jan 2020 23:30:20 +0000 (+1100) Subject: Fix bad init of Torrent.requestStrategy X-Git-Tag: v1.12.0~9 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=cfc68d3ae6604efb5124f72ad93a2ba5db4e2885;p=btrtrc.git Fix bad init of Torrent.requestStrategy --- diff --git a/client.go b/client.go index fddddf48..620b4b62 100644 --- a/client.go +++ b/client.go @@ -1039,11 +1039,11 @@ func (cl *Client) newTorrent(ih metainfo.Hash, specStorage storage.ClientImpl) ( maxEstablishedConns: cl.config.EstablishedConnsPerTorrent, networkingEnabled: true, - requestStrategy: cl.config.DefaultRequestStrategy(t.requestStrategyCallbacks()), metadataChanged: sync.Cond{ L: cl.locker(), }, } + t.requestStrategy = cl.config.DefaultRequestStrategy(t.requestStrategyCallbacks()) t.logger = cl.logger.WithValues(t).WithText(func(m log.Msg) string { return fmt.Sprintf("%v: %s", t, m.Text()) })