fix SinkSpec, and async boundary attribute, #22463

* let's keep the AsyncBoundary attribute for now,
  makeIsland is done in setAttributes
* fixing SinkSpec and RunnableGraphSpec
This commit is contained in:
Patrik Nordwall 2017-03-08 14:22:19 +01:00 committed by Konrad `ktoso` Malawski
parent 2990edb66c
commit 6c8e24cefa
7 changed files with 32 additions and 72 deletions

View file

@ -153,9 +153,7 @@ final class Source[+Out, +Mat](
/**
* Put an asynchronous boundary around this `Source`
*/
override def async: Repr[Out] = new Source(
traversalBuilder.makeIsland(GraphStageTag),
shape)
override def async: Repr[Out] = addAttributes(Attributes.asyncBoundary)
/**
* Converts this Scala DSL element to it's Java DSL counterpart.
@ -233,8 +231,7 @@ object Source {
case s: javadsl.Source[T, M] s.asScala
case other new Source(
LinearTraversalBuilder.fromBuilder(other.traversalBuilder, other.shape, Keep.right),
other.shape
)
other.shape)
}
/**