]> Sergey Matveev's repositories - btrtrc.git/blobdiff - client.go
Use roaring bitmap for pending pieces
[btrtrc.git] / client.go
index db93e5695c80f12de7356935e3758c7101e5261d..83da43e63b160c4f2f7866773bbf62ec68b94894 100644 (file)
--- a/client.go
+++ b/client.go
@@ -1131,7 +1131,6 @@ func (cl *Client) newTorrentOpt(opts addTorrentOpts) (t *Torrent) {
                gotMetainfoC: make(chan struct{}),
        }
        t.networkingEnabled.Set()
-       t._pendingPieces.NewSet = priorityBitmapStableNewSet
        t.logger = cl.logger.WithContextValue(t)
        if opts.ChunkSize == 0 {
                opts.ChunkSize = defaultChunkSize