Skip to content

Commit 18e98d4

Browse files
authored
chore: Require breadth >= 1 in FlattenMerge (#1699)
1 parent 0bf6606 commit 18e98d4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stream/src/main/scala/org/apache/pekko/stream/impl/fusing/StreamOfStreams.scala

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ import pekko.util.ccompat.JavaConverters._
4646
*/
4747
@InternalApi private[pekko] final class FlattenMerge[T, M](val breadth: Int)
4848
extends GraphStage[FlowShape[Graph[SourceShape[T], M], T]] {
49+
require(breadth >= 1, "breadth should >= 1")
4950
private val in = Inlet[Graph[SourceShape[T], M]]("flatten.in")
5051
private val out = Outlet[T]("flatten.out")
5152

0 commit comments

Comments
 (0)