make RunnableGraph.addAttributes return a RunnableGraph #20630
This commit is contained in:
parent
bb701d1725
commit
1c6b38743b
3 changed files with 16 additions and 7 deletions
|
|
@ -350,6 +350,9 @@ final case class RunnableGraph[+Mat](val module: StreamLayout.Module) extends Gr
|
|||
*/
|
||||
def run()(implicit materializer: Materializer): Mat = materializer.materialize(this)
|
||||
|
||||
override def addAttributes(attr: Attributes): RunnableGraph[Mat] =
|
||||
withAttributes(module.attributes and attr)
|
||||
|
||||
override def withAttributes(attr: Attributes): RunnableGraph[Mat] =
|
||||
new RunnableGraph(module.withAttributes(attr))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue