Skip to content
This repository was archived by the owner on Sep 14, 2023. It is now read-only.

Commit e4444ca

Browse files
authored
Merge pull request #99 from VladKopanev/zio-1.0.0
Bump version to zio 1.0.0
2 parents 09d8773 + 46fcbc7 commit e4444ca

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ test-output/
77
project/.sbt
88
test-output/
99
local.*
10+
.idea
1011

1112
# if you are here to add your IDE's files please read this instead:
1213
# https://stackoverflow.com/questions/7335420/global-git-ignore#22885996

build.sbt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ lazy val core = project
8989
name := "zio-saga-core",
9090
crossScalaVersions := allScala,
9191
libraryDependencies ++= Seq(
92-
"dev.zio" %% "zio" % "1.0.0-RC20",
93-
"dev.zio" %% "zio-test" % "1.0.0-RC20" % "test",
94-
"dev.zio" %% "zio-test-sbt" % "1.0.0-RC20" % "test"
92+
"dev.zio" %% "zio" % "1.0.0",
93+
"dev.zio" %% "zio-test" % "1.0.0" % "test",
94+
"dev.zio" %% "zio-test-sbt" % "1.0.0" % "test"
9595
),
9696
testFrameworks := Seq(new TestFramework("zio.test.sbt.ZTestFramework"))
9797
)

core/src/main/scala/com/vladkopanev/zio/saga/Saga.scala

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
package com.vladkopanev.zio.saga
22

33
import com.vladkopanev.zio.saga.Saga.Compensator
4-
import zio.{ Cause, Exit, Fiber, IO, RIO, Schedule, Task, UIO, ZIO }
4+
import zio.clock.Clock
5+
import zio.{Cause, Exit, Fiber, IO, RIO, Schedule, Task, UIO, ZIO}
56

67
/**
78
* A Saga is an immutable structure that models a distributed transaction.
@@ -175,8 +176,8 @@ object Saga {
175176
request: ZIO[R, E, A],
176177
compensator: Compensator[R, E],
177178
schedule: Schedule[SR, E, Any]
178-
): Saga[R with SR, E, A] = {
179-
val retry: Compensator[R with SR, E] = compensator.retry(schedule.unit)
179+
): Saga[R with SR with Clock, E, A] = {
180+
val retry: Compensator[R with SR with Clock, E] = compensator.retry(schedule.unit)
180181
compensate(request, retry)
181182
}
182183

@@ -217,7 +218,7 @@ object Saga {
217218
def retryableCompensate[R1 <: R, SR, E1 >: E](
218219
c: Compensator[R1, E1],
219220
schedule: Schedule[SR, E1, Any]
220-
): Saga[R1 with SR, E1, A] =
221+
): Saga[R1 with SR with Clock, E1, A] =
221222
Saga.retryableCompensate(request, c, schedule)
222223

223224
def noCompensate: Saga[R, E, A] = Saga.noCompensate(request)

0 commit comments

Comments
 (0)