From: Matt Joiner Date: Mon, 20 Dec 2021 01:10:26 +0000 (+1100) Subject: Switch to ajwerner/btree in piece request ordering X-Git-Tag: v1.42.0~8^2^2~19 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=935dc3da0ac808a3c070708686687707b124e8d9;p=btrtrc.git Switch to ajwerner/btree in piece request ordering --- 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()) } }