!str #18674 remove FlowGraph.Builder.add(Sink|Source)

This commit is contained in:
Roland Kuhn 2015-10-26 12:31:17 +01:00
parent 630bd948d5
commit 0c78cca7ed
5 changed files with 10 additions and 19 deletions

View file

@ -819,8 +819,8 @@ class MessageSpec extends FreeSpec with Matchers with WithMaterializerSpec {
val messageHandler: Flow[Message, Message, Unit] =
Flow.fromGraph {
FlowGraph.create() { implicit b
val in = b.add(Sink(messageIn))
val out = b.add(Source(messageOut))
val in = b.add(Sink(messageIn)).inlet
val out = b.add(Source(messageOut)).outlet
FlowShape[Message, Message](in, out)
}