Make flowspec great again drewhk (#22443)

* #22435: Make DirectProcessorModule work again

* #22435: Fix attributes propagation for FanoutProcessor

* #22435: Remove old "faulty-flow" spec
This commit is contained in:
drewhk 2017-03-03 10:49:34 +01:00 committed by GitHub
parent 46b869d041
commit b33339f13e
5 changed files with 30 additions and 107 deletions

View file

@ -107,7 +107,7 @@ private[akka] final class FanoutPublisherSink[In](
val actorMaterializer = ActorMaterializerHelper.downcast(context.materializer)
val impl = actorMaterializer.actorOf(
context,
FanoutProcessorImpl.props(actorMaterializer.effectiveSettings(attributes)))
FanoutProcessorImpl.props(actorMaterializer.effectiveSettings(context.effectiveAttributes)))
val fanoutProcessor = new ActorProcessor[In, In](impl)
impl ! ExposedPublisher(fanoutProcessor.asInstanceOf[ActorPublisher[Any]])
// Resolve cyclic dependency with actor. This MUST be the first message no matter what.