Skip to content

Commit

Permalink
build: zio depends on shared module correctly (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
Honza Strnad committed Mar 23, 2020
1 parent ec79051 commit fb4e213
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ lazy val zio = (project in file("zio"))
)
)
.settings(commonSettings)
.dependsOn(api, shared)
.dependsOn(api, shared % "compile->compile;test->test")

addCommandAlias(
"check",
Expand Down
4 changes: 1 addition & 3 deletions zio/src/main/scala/slog4s/zio/UseZIOContext.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ object UseZIOContext {
new UseContext[ZIO[R, E, *], T] {

override def update[V](f: T => T)(fv: ZIO[R, E, V]): ZIO[R, E, V] = {
fiberRef.get.flatMap { old =>
fiberRef.locally(f(old))(fv)
}
fiberRef.get.flatMap { old => fiberRef.locally(f(old))(fv) }
}
}
}

0 comments on commit fb4e213

Please sign in to comment.