named should not replace attributes #21068

Add attributes in named rather than replace, additionally: test coverage and missing method on RunnableGraph added
This commit is contained in:
Johan Andrén 2016-08-09 15:11:59 +02:00 committed by GitHub
parent f1c589639c
commit 61f566063b
8 changed files with 61 additions and 8 deletions

View file

@ -356,7 +356,11 @@ final case class RunnableGraph[+Mat](val module: StreamLayout.Module) extends Gr
override def withAttributes(attr: Attributes): RunnableGraph[Mat] =
new RunnableGraph(module.withAttributes(attr))
override def named(name: String): RunnableGraph[Mat] = withAttributes(Attributes.name(name))
override def named(name: String): RunnableGraph[Mat] =
addAttributes(Attributes.name(name))
override def async: RunnableGraph[Mat] =
addAttributes(Attributes.asyncBoundary)
}
/**