Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ trait ZioResourceApp[A] extends CatsApp {

def program: Resource[Task, A]

override def run(args: List[String]): ZIO[ZEnv, Nothing, Int] = {
override def run(args: List[String]): ZIO[ZEnv, Nothing, ExitCode] = {
program
.use(_ => Task.unit)
.fold(
ex => {
logger.error("Application initialization failed!", ex)
1
ExitCode.failure
},
_ => 0
_ => ExitCode.success
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ trait ZioServerApp extends CatsApp {
def program: Resource[Task, Server[Task]]

@silent("dead code")
override def run(args: List[String]): ZIO[ZEnv, Nothing, Int] = {
override def run(args: List[String]): ZIO[ZEnv, Nothing, ExitCode] = {
program
.use { server =>
for {
Expand All @@ -30,9 +30,9 @@ trait ZioServerApp extends CatsApp {
.fold(
ex => {
logger.error("Server initialization failed!", ex)
1
ExitCode.failure
},
_ => 0
_ => ExitCode.success
)
}

Expand Down
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ object Dependencies {
val sslConfig = "com.typesafe" %% "ssl-config-core" % "0.4.2"
val testContainersScalaScalaTest = "com.dimafeng" %% "testcontainers-scala-scalatest" % "0.37.0"
val testContainersScalaKafka = "com.dimafeng" %% "testcontainers-scala-kafka" % "0.37.0"
val zio = "dev.zio" %% "zio" % "1.0.0-RC19-2"
val zio = "dev.zio" %% "zio" % "1.0.0-RC20"
val zioInteropCats = "dev.zio" %% "zio-interop-cats" % "2.0.0.0-RC14"

object Versions {
Expand Down