Skip to content

Commit

Permalink
Flatten nested Iterator correctly in Scala 2.12
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiuszkierat committed Dec 20, 2024
1 parent aded4cc commit 49a1e12
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class NettyCatsRequestTimeoutTest(
chunksToGo -= 1
List.fill('A')(chunkSize).map(_.toByte).iterator
}
}.flatten
}.flatMap(identity)

val inputStream = fs2.Stream.fromIterator[IO](iterator(howManyChunks, chunkSize), chunkSize = chunkSize)

Expand Down

0 comments on commit 49a1e12

Please sign in to comment.