]> Sergey Matveev's repositories - btrtrc.git/blobdiff - t.go
Fix unnecessary modification of Torrent.CancelPieces API
[btrtrc.git] / 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()