add maxFixedBufferSize materializer setting #19702

This commit is contained in:
Roland Kuhn 2016-02-07 14:54:48 +01:00
parent f3073b89e0
commit d0e6f46f14
13 changed files with 306 additions and 223 deletions

View file

@ -107,8 +107,8 @@ private[akka] final class ActorRefSource[Out](
extends SourceModule[Out, ActorRef](shape) {
override def create(context: MaterializationContext) = {
val ref = ActorMaterializer.downcast(context.materializer).actorOf(context,
ActorRefSourceActor.props(bufferSize, overflowStrategy))
val mat = ActorMaterializer.downcast(context.materializer)
val ref = mat.actorOf(context, ActorRefSourceActor.props(bufferSize, overflowStrategy, mat.settings))
(akka.stream.actor.ActorPublisher[Out](ref), ref)
}