Skip to content

Commit

Permalink
Oops.. Added a missing collector.
Browse files Browse the repository at this point in the history
  • Loading branch information
climategadgets committed Mar 21, 2024
1 parent 4fbc5e3 commit 7e6dc48
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@ public Mono<ServerResponse> 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())
Expand Down

0 comments on commit 7e6dc48

Please sign in to comment.