Skip to content

Commit 5e66eaf

Browse files
authored
Merge pull request #248 from scala-steward/update/zio-1.0.0-RC20
Update zio to 1.0.0-RC20
2 parents bee8dbe + 6ce074e commit 5e66eaf

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

bundle-zio-http4s-blaze/src/main/scala/com/avast/sst/bundle/ZioResourceApp.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ trait ZioResourceApp[A] extends CatsApp {
1515

1616
def program: Resource[Task, A]
1717

18-
override def run(args: List[String]): ZIO[ZEnv, Nothing, Int] = {
18+
override def run(args: List[String]): ZIO[ZEnv, Nothing, ExitCode] = {
1919
program
2020
.use(_ => Task.unit)
2121
.fold(
2222
ex => {
2323
logger.error("Application initialization failed!", ex)
24-
1
24+
ExitCode.failure
2525
},
26-
_ => 0
26+
_ => ExitCode.success
2727
)
2828
}
2929

bundle-zio-http4s-blaze/src/main/scala/com/avast/sst/bundle/ZioServerApp.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ trait ZioServerApp extends CatsApp {
1919
def program: Resource[Task, Server[Task]]
2020

2121
@silent("dead code")
22-
override def run(args: List[String]): ZIO[ZEnv, Nothing, Int] = {
22+
override def run(args: List[String]): ZIO[ZEnv, Nothing, ExitCode] = {
2323
program
2424
.use { server =>
2525
for {
@@ -30,9 +30,9 @@ trait ZioServerApp extends CatsApp {
3030
.fold(
3131
ex => {
3232
logger.error("Server initialization failed!", ex)
33-
1
33+
ExitCode.failure
3434
},
35-
_ => 0
35+
_ => ExitCode.success
3636
)
3737
}
3838

project/Dependencies.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ object Dependencies {
3737
val sslConfig = "com.typesafe" %% "ssl-config-core" % "0.4.2"
3838
val testContainersScalaScalaTest = "com.dimafeng" %% "testcontainers-scala-scalatest" % "0.37.0"
3939
val testContainersScalaKafka = "com.dimafeng" %% "testcontainers-scala-kafka" % "0.37.0"
40-
val zio = "dev.zio" %% "zio" % "1.0.0-RC19-2"
40+
val zio = "dev.zio" %% "zio" % "1.0.0-RC20"
4141
val zioInteropCats = "dev.zio" %% "zio-interop-cats" % "2.0.0.0-RC14"
4242

4343
object Versions {

0 commit comments

Comments
 (0)