akka-stream compiler warnings as fatal errors (#26673)

This commit is contained in:
Johan Andrén 2019-04-05 13:06:33 +02:00 committed by GitHub
parent 6207484c0e
commit 7e7901ad49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
53 changed files with 276 additions and 183 deletions

View file

@ -13,6 +13,7 @@ import org.reactivestreams._
import scala.annotation.unchecked.uncheckedVariance
import akka.event.Logging
import com.github.ghik.silencer.silent
/**
* INTERNAL API
@ -98,6 +99,7 @@ import akka.event.Logging
shape: SourceShape[Out])
extends SourceModule[Out, ActorRef](shape) {
@silent
override def create(context: MaterializationContext) = {
val publisherRef = ActorMaterializerHelper.downcast(context.materializer).actorOf(context, props)
(akka.stream.actor.ActorPublisher[Out](publisherRef), publisherRef)