Skip to content

Commit

Permalink
Merge pull request #7 from ScalaConsultants/update/akka-http-10.2.0
Browse files Browse the repository at this point in the history
Update akka-http to 10.2.0
  • Loading branch information
jczuchnowski authored Aug 17, 2020
2 parents 031c973 + 3f3172f commit 8571aa2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import ReleasePlugin.autoImport._

val zioVersion = "1.0.0"
val akkaVersion = "2.6.8"
val akkaHttpVersion = "10.1.12"
val akkaHttpVersion = "10.2.0"

val compilerOptions = Seq(
"-deprecation",
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/akka/http/interop/HttpServer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ object HttpServer {
implicit val system: ActorSystem = sys

val start: Managed[Throwable, Http.ServerBinding] =
ZManaged.make(ZIO.fromFuture(_ => Http().bindAndHandle(routes, cfg.host, cfg.port)))(b =>
ZManaged.make(ZIO.fromFuture(_ => Http().newServerAt(cfg.host, cfg.port).bind(routes)))(b =>
ZIO.fromFuture(_ => b.unbind()).orDie
)
}
Expand Down

0 comments on commit 8571aa2

Please sign in to comment.