Skip to content

Commit

Permalink
Upgraded to FS2 0.10.0-RC2
Browse files Browse the repository at this point in the history
  • Loading branch information
mpilquist committed Jan 24, 2018
1 parent c932586 commit e7c3bb6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ lazy val core = project.in(file("core")).enablePlugins(SbtOsgi).
name := "circuitbreaker",
libraryDependencies ++= Seq(
"com.ccadllc.cedi" %% "config" % "1.1.0",
"co.fs2" %% "fs2-core" % "0.10.0-M10",
"co.fs2" %% "fs2-core" % "0.10.0-RC2",
"org.scalatest" %% "scalatest" % "3.0.4" % "test"
),
buildOsgiBundle("com.ccadllc.cedi.circuitbreaker"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ object CircuitBreakerRegistry {
_ <- state.modify(s => s.copy(circuitBreakers = s.circuitBreakers filterNot { case (id, _) => expiredIds.contains(id) }))
} yield ()
if (settings.garbageCollection.checkInterval > 0.nanoseconds) async.start(
scheduler.awakeEvery[F](settings.garbageCollection.checkInterval).evalMap { _ => collectGarbage }.interruptWhen(shutdownSignal).run.map { _ => () }
scheduler.awakeEvery[F](settings.garbageCollection.checkInterval).evalMap { _ => collectGarbage }.interruptWhen(shutdownSignal).compile.drain.map { _ => () }
)
else F.pure(())
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ trait TestSupport extends WordSpecLike with Matchers with BeforeAndAfterAll {
case ClosedEvent(id, stats) => tseo.closed(id, stats)
case ThrottledUpEvent(id, stats) => tseo.throttledUp(id, stats)
case ThrottledDownEvent(id, stats) => tseo.throttledDown(id, stats)
}.drain.run.runAsync(_ => IO.unit).unsafeRunSync
}.compile.drain.runAsync(_ => IO.unit).unsafeRunSync
tseo
}
}
Expand Down Expand Up @@ -149,7 +149,7 @@ trait TestSupport extends WordSpecLike with Matchers with BeforeAndAfterAll {
registry.statistics(checkInterval).evalMap {
case fs @ FailureStatistics(_, _, _, _, _, _) => tsso.add(fs)
case fcs @ FlowControlStatistics(_, _, _, _) => tsso.add(fcs)
}.drain.run.runAsync { _ => IO.unit }.unsafeRunSync
}.compile.drain.runAsync { _ => IO.unit }.unsafeRunSync
tsso
}
}
Expand Down

0 comments on commit e7c3bb6

Please sign in to comment.