]> Sergey Matveev's repositories - btrtrc.git/blobdiff - connection_test.go
Make Torrent.pendingPieces a priority bitmap in preparation for #220
[btrtrc.git] / connection_test.go
index 3f6dfd93b17b282c023adbdaff18750b977a8fef..f22d26b9ba5727a16c23361a7b60aff068bb70ab 100644 (file)
@@ -97,7 +97,7 @@ func BenchmarkConnectionMainReadLoop(b *testing.B) {
        }
        t.setChunkSize(defaultChunkSize)
        t.makePieces()
-       t.pendingPieces.Add(0)
+       t.pendingPieces.Set(0, PiecePriorityNormal.BitmapPriority())
        r, w := io.Pipe()
        cn := &connection{
                t: t,