Switch to ajwerner/btree in piece request ordering

This commit is contained in:
Matt Joiner 2021-12-20 12:10:26 +11:00
parent 934944e498
commit 935dc3da0a
1 changed files with 1 additions and 1 deletions

View File

@ -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())
}
}