]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Fix unnecessary modification of Torrent.CancelPieces API
authorMatt Joiner <anacrolix@gmail.com>
Fri, 29 Oct 2021 00:52:28 +0000 (11:52 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Fri, 29 Oct 2021 00:52:28 +0000 (11:52 +1100)
https://github.com/anacrolix/torrent/issues/681

t.go

diff --git a/t.go b/t.go
index 78c500dc438faf33b9d6f3a12dd669ff5fa5566c..a7f9889289b63a83533fbfb4ed8b4c96987935a5 100644 (file)
--- a/t.go
+++ b/t.go
@@ -190,7 +190,7 @@ func (t *Torrent) downloadPiecesLocked(begin, end pieceIndex) {
        }
 }
 
-func (t *Torrent) CancelPieces(begin, end pieceIndex, reason string) {
+func (t *Torrent) CancelPieces(begin, end pieceIndex) {
        t.cl.lock()
        t.cancelPiecesLocked(begin, end, "Torrent.CancelPieces")
        t.cl.unlock()