Mini cleanup to stream.ActorMaterializer (#25866)

Do it once, instead of in all 4 call sites.
This commit is contained in:
Dale Wijnand 2018-11-05 13:10:54 +00:00 committed by Johan Andrén
parent 079aa46733
commit 91101d996c
3 changed files with 12 additions and 10 deletions

View file

@ -71,8 +71,9 @@ import akka.util.OptionVal
val system = actorSystemOf(context)
val materializerSettings = ActorMaterializerSettings(system)
val streamSupervisor = context.actorOf(StreamSupervisor.props(materializerSettings, haveShutDown)
.withDispatcher(materializerSettings.dispatcher), StreamSupervisor.nextName())
val streamSupervisor = context.actorOf(
StreamSupervisor.props(materializerSettings, haveShutDown),
StreamSupervisor.nextName())
PhasedFusingActorMaterializer(
system,