This commit is contained in:
Ignasi Marimon-Clos 2020-07-13 14:04:28 +02:00
parent 6c12ae117a
commit 6ca92cc543

View file

@ -60,8 +60,8 @@ public class Monitor {
// Periodically check the monitor // Periodically check the monitor
Source.tick(Duration.ofMillis(200), Duration.ofMillis(400), "") Source.tick(Duration.ofMillis(200), Duration.ofMillis(400), "")
.runForeach(__ -> printMonitorState(monitor.state()), actorSystem); .runForeach(__ -> printMonitorState(monitor.state()), actorSystem);
// #monitor // #monitor
run.second().toCompletableFuture().whenComplete((x, t) -> actorSystem.terminate()); run.second().toCompletableFuture().whenComplete((x, t) -> actorSystem.terminate());
} }