From 7e6dc48d89121fd4786ad572715e9feec09fd7b1 Mon Sep 17 00:00:00 2001 From: Vadim Tkachenko Date: Wed, 20 Mar 2024 19:30:42 -0700 Subject: [PATCH] Oops.. Added a missing collector. --- .../src/main/java/net/sf/dz3r/view/webui/v2/WebUI.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/hcc-webui/src/main/java/net/sf/dz3r/view/webui/v2/WebUI.java b/modules/hcc-webui/src/main/java/net/sf/dz3r/view/webui/v2/WebUI.java index 44049e009..c184758c0 100644 --- a/modules/hcc-webui/src/main/java/net/sf/dz3r/view/webui/v2/WebUI.java +++ b/modules/hcc-webui/src/main/java/net/sf/dz3r/view/webui/v2/WebUI.java @@ -315,7 +315,8 @@ public Mono getUnits(ServerRequest ignoredRq) { var units = Flux.fromIterable(unit2observer.entrySet()) .map(kv -> new AbstractMap.SimpleEntry<>( kv.getKey().getAddress(), - kv.getValue().getUnitStatus())); + kv.getValue().getUnitStatus())) + .collectMap(Map.Entry::getKey, Map.Entry::getValue); return ok() .cacheControl(CacheControl.noCache())