]> Sergey Matveev's repositories - btrtrc.git/blobdiff - request-strategy-impls.go
Handle v2 Torrents added by short infohash only
[btrtrc.git] / request-strategy-impls.go
index 661769f3c1a94d5767397444d455d273785e8726..43acca13433242faa736dfdf7c416320d68bdccf 100644 (file)
@@ -59,8 +59,9 @@ func (cl *Client) getRequestStrategyInput(primaryTorrent *Torrent) (input reques
        } else {
                return requestStrategyInputMultiTorrent{
                        requestStrategyInputCommon: cl.getRequestStrategyInputCommon(),
-                       torrents:                   cl.torrents,
-                       capFunc:                    primaryTorrent.storage.Capacity,
+                       // TODO: Check this is an appropriate key
+                       torrents: cl.torrentsByShortHash,
+                       capFunc:  primaryTorrent.storage.Capacity,
                }
        }
 }