From 935dc3da0ac808a3c070708686687707b124e8d9 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Mon, 20 Dec 2021 12:10:26 +1100 Subject: [PATCH] Switch to ajwerner/btree in piece request ordering --- torrent-piece-request-order.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torrent-piece-request-order.go b/torrent-piece-request-order.go index 8e4f55fa..17206679 100644 --- a/torrent-piece-request-order.go +++ b/torrent-piece-request-order.go @@ -45,7 +45,7 @@ func (t *Torrent) initPieceRequestOrder() { key := t.clientPieceRequestOrderKey() cpro := t.cl.pieceRequestOrder if cpro[key] == nil { - cpro[key] = request_strategy.NewPieceOrder(request_strategy.NewTidwallBtree(), t.numPieces()) + cpro[key] = request_strategy.NewPieceOrder(request_strategy.NewAjwernerBtree(), t.numPieces()) } }