Merge pull request #19558 from drewhk/wip-19333-remove-implicitmaterializer-drewhk

#19333: Remove ImplicitMaterializer
This commit is contained in:
drewhk 2016-01-21 14:59:05 +01:00
commit b2ce5da625
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() = {