From a11df82349a83b042d0884045e4ef478679800ad Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Sat, 14 Jan 2017 20:39:48 +1100 Subject: [PATCH] package itertools API changed --- connection.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/connection.go b/connection.go index 76631cdc..5b129cec 100644 --- a/connection.go +++ b/connection.go @@ -18,9 +18,8 @@ import ( "github.com/anacrolix/missinggo" "github.com/anacrolix/missinggo/bitmap" - "github.com/anacrolix/missinggo/itertools" + "github.com/anacrolix/missinggo/iter" "github.com/anacrolix/missinggo/prioritybitmap" - "github.com/bradfitz/iter" "github.com/anacrolix/torrent/bencode" pp "github.com/anacrolix/torrent/peer_protocol" @@ -521,7 +520,7 @@ func (c *connection) requestPiecePendingChunks(piece int) (again bool) { return true } chunkIndices := c.t.pieces[piece].undirtiedChunkIndices().ToSortedSlice() - return itertools.ForPerm(len(chunkIndices), func(i int) bool { + return iter.ForPerm(len(chunkIndices), func(i int) bool { req := request{pp.Integer(piece), c.t.chunkIndexSpec(chunkIndices[i], piece)} return c.Request(req) }) -- 2.48.1