Skip to content

Commit

Permalink
Testing latest ZIO RC version (#162)
Browse files Browse the repository at this point in the history
* Update zio to latest RC version

* Update build.sbt

* Update zio-http to latest snapshot and disable thread dumping

* Rollback zio-http version
  • Loading branch information
kyri-petrou authored May 17, 2024
1 parent 36163e5 commit 26e5fb7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion graphql/caliban/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ lazy val root = (project in file("."))
"com.github.ghostdogpr" %% "caliban-quick" % "2.6.0",
"com.github.plokhotnyuk.jsoniter-scala" %% "jsoniter-scala-core" % "2.28.5",
"com.github.plokhotnyuk.jsoniter-scala" %% "jsoniter-scala-macros" % "2.28.5" % Provided,
"org.apache.httpcomponents.client5" % "httpclient5" % "5.3.1"
"org.apache.httpcomponents.client5" % "httpclient5" % "5.3.1",
"dev.zio" %% "zio" % "2.1.0-RC5",
"dev.zio" %% "zio-http" % "3.0.0-RC6+23-5441a052-SNAPSHOT"
)
)

Expand Down
5 changes: 3 additions & 2 deletions graphql/caliban/src/main/scala/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import caliban.quick.*
import zio.*

object Main extends ZIOAppDefault {
private val api = graphQL(RootResolver(Query(Service.posts)))
override val bootstrap: ZLayer[ZIOAppArgs, Any, Any] = Runtime.removeDefaultLoggers
override val bootstrap: ZLayer[ZIOAppArgs, Any, Any] =
Runtime.removeDefaultLoggers ++ Runtime.disableFlags(RuntimeFlag.FiberRoots)

private val api = graphQL(RootResolver(Query(Service.posts)))
def run =
api
.runServer(8000, apiPath = "/graphql")
Expand Down

0 comments on commit 26e5fb7

Please sign in to comment.