From 2c91d1e3fbd2b8e9dc1f42d2a3f8398081c2c60b Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Sat, 23 Sep 2017 15:27:10 +1000 Subject: [PATCH] Changes to Bitmap referencing --- torrent.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/torrent.go b/torrent.go index c09a4d0b..84691af6 100644 --- a/torrent.go +++ b/torrent.go @@ -950,7 +950,7 @@ func (t *Torrent) pendPiece(piece int) { t.updatePiecePriority(piece) } -func (t *Torrent) unpendPieces(unpend *bitmap.Bitmap) { +func (t *Torrent) unpendPieces(unpend bitmap.Bitmap) { t.pendingPieces.Sub(unpend) unpend.IterTyped(func(piece int) (again bool) { t.updatePiecePriority(piece) @@ -967,7 +967,7 @@ func (t *Torrent) pendPieceRange(begin, end int) { func (t *Torrent) unpendPieceRange(begin, end int) { var bm bitmap.Bitmap bm.AddRange(begin, end) - t.unpendPieces(&bm) + t.unpendPieces(bm) } func (t *Torrent) pendRequest(req request) { -- 2.48.1