Skip to content

Commit

Permalink
don't ignore (useless) return value, make spotbugs happy
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Apr 14, 2023
1 parent 7ca9203 commit b8a16ca
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/main/java/io/cryostat/discovery/BuiltInDiscovery.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
import java.util.SortedSet;
import java.util.UUID;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Future;
import java.util.function.Consumer;
import java.util.stream.Stream;

Expand Down Expand Up @@ -132,13 +133,15 @@ public void start(Promise<Void> start) {
});

platform.addTargetDiscoveryListener(
tde ->
executor.submit(
() ->
storage.update(
id,
platform.getDiscoveryTree()
.getChildren())));
tde -> {
Future<?> f =
executor.submit(
() ->
storage.update(
id,
platform.getDiscoveryTree()
.getChildren()));
});
Promise<EnvironmentNode> promise = Promise.promise();
promise.future()
.onSuccess(
Expand Down

0 comments on commit b8a16ca

Please sign in to comment.