Skip to content

Commit

Permalink
move method
Browse files Browse the repository at this point in the history
  • Loading branch information
iusildra authored and adpi2 committed Feb 7, 2024
1 parent 2430f19 commit d07b80c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ final class Compilations(
Future.sequence(expansions).map(_.flatten)
}

def compileAll(): Future[Map[BuildTargetIdentifier, b.CompileResult]] =
compile(None)(buildTargets.allBuildTargetIds).future

private def compile(timeout: Option[Timeout])(
targets: Seq[b.BuildTargetIdentifier]
): CancelableFuture[Map[BuildTargetIdentifier, b.CompileResult]] = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,7 @@ private[debug] final class DebugProxy(
case HotCodeReplace(req) =>
scribe.info("Hot code replace triggered")
compilations
.compile(sourceMapper.buildTargets.allBuildTargetIds)
.future
.compileAll()
.onComplete { res =>
res match {
case _: Success[?] => server.send(req)
Expand Down

0 comments on commit d07b80c

Please sign in to comment.