Skip to content

Commit

Permalink
use older-style toList() call for JDK compat
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Sep 21, 2023
1 parent f3f08dc commit 9aa1542
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/io/cryostat/agent/Registration.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;
import java.util.function.Consumer;
import java.util.stream.Collectors;

import io.cryostat.agent.model.DiscoveryNode;
import io.cryostat.agent.model.PluginInfo;
Expand Down Expand Up @@ -245,7 +246,9 @@ private void tryUpdate() {
}
log.info(
"publishing self as {}",
selfNodes.stream().map(n -> n.getTarget().getConnectUrl()).toList());
selfNodes.stream()
.map(n -> n.getTarget().getConnectUrl())
.collect(Collectors.toList()));
Future<Void> f =
cryostat.update(pluginInfo, selfNodes)
.handle(
Expand Down

0 comments on commit 9aa1542

Please sign in to comment.