#19333: Remove ImplicitMaterializer

This commit is contained in:
Endre Sándor Varga 2016-01-13 13:32:42 +01:00
parent b0cb922834
commit ba2373a8e4
5 changed files with 5 additions and 74 deletions

View file

@ -5,6 +5,7 @@
package docs.http.scaladsl
import akka.actor.{ ActorLogging, ActorSystem }
import akka.stream.{ ActorMaterializerSettings }
import akka.util.ByteString
import org.scalatest.{ Matchers, WordSpec }
@ -78,15 +79,17 @@ class HttpClientExampleSpec extends WordSpec with Matchers {
import akka.actor.Actor
import akka.http.scaladsl.Http
import akka.http.scaladsl.model._
import akka.stream.scaladsl.ImplicitMaterializer
import akka.stream.ActorMaterializer
import akka.stream.ActorMaterializerSettings
class Myself extends Actor
with ImplicitMaterializer
with ActorLogging {
import akka.pattern.pipe
import context.dispatcher
final implicit val materializer: ActorMaterializer = ActorMaterializer(ActorMaterializerSettings(context.system))
val http = Http(context.system)
override def preStart() = {