File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
bundle-zio-http4s-blaze/src/main/scala/com/avast/sst/bundle Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments