Skip to content

Commit

Permalink
chore: Require breadth >= 1 in FlattenMerge
Browse files Browse the repository at this point in the history
  • Loading branch information
He-Pin committed Jan 10, 2025
1 parent 0bf6606 commit 90e2df8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ import pekko.util.ccompat.JavaConverters._
*/
@InternalApi private[pekko] final class FlattenMerge[T, M](val breadth: Int)
extends GraphStage[FlowShape[Graph[SourceShape[T], M], T]] {
require(breadth >= 1, "breadth should >= 1")
private val in = Inlet[Graph[SourceShape[T], M]]("flatten.in")
private val out = Outlet[T]("flatten.out")

Expand Down

0 comments on commit 90e2df8

Please sign in to comment.