Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
scalafmt
Browse files Browse the repository at this point in the history
Co-authored-by: Iván Molina Rebolledo <ivan@deal-engine.com>
  • Loading branch information
fabianhjr-dealengine and IvanAtDealEngine committed Nov 13, 2023
1 parent cacf187 commit de32f66
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
5 changes: 4 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ ThisBuild / tlSitePublishBranch := Some("master")
ThisBuild / tlFatalWarnings := false
ThisBuild / tlCiHeaderCheck := false

ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec.temurin("11"), JavaSpec.temurin("17"))
ThisBuild / githubWorkflowJavaVersions := Seq(
JavaSpec.temurin("11"),
JavaSpec.temurin("17")
)
ThisBuild / githubWorkflowBuildPreamble ++= Seq(
WorkflowStep.Run(
commands = List("docker-compose up -d"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,13 @@ object Util {
// From cats
private val scheduler: Scheduler = new Scheduler {
override def sleep(delay: FiniteDuration, task: Runnable): Runnable =
() => Future.Unit.flatMap { _ =>
implicit val timer: JavaTimer = new JavaTimer()
Future.sleep(Duration.fromMilliseconds(delay.toMillis)).flatMap { _ =>
Future { task.run() }
() =>
Future.Unit.flatMap { _ =>
implicit val timer: JavaTimer = new JavaTimer()
Future.sleep(Duration.fromMilliseconds(delay.toMillis)).flatMap { _ =>
Future { task.run() }
}
}
}

override def nowMillis(): Long = System.currentTimeMillis()

Expand Down

0 comments on commit de32f66

Please sign in to comment.