Skip to content

Commit 0d46b29

Browse files
committed
Modifications after some code review remarks
Signed-off-by: Franck LECUYER <[email protected]>
1 parent 83b1022 commit 0d46b29

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/main/java/org/gridsuite/securityanalysis/server/service/SecurityAnalysisWorkerService.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,14 +179,13 @@ public Consumer<Flux<Message<String>>> consumeRun() {
179179
futures.remove(resultContext.getResultUuid());
180180
cancelComputationRequests.remove(resultContext.getResultUuid());
181181
runRequests.remove(resultContext.getResultUuid());
182-
})
183-
.doOnError(throwable -> {
184-
if (!(throwable instanceof CancellationException)) {
185-
LOGGER.error("Exception in consumeRun", throwable);
186-
}
187182
});
188183
})
189-
.onErrorContinue((t, r) -> LOGGER.error("Exception in consumeRun", t))
184+
.onErrorContinue((t, r) -> {
185+
if (!(t instanceof CancellationException)) {
186+
LOGGER.error("Exception in consumeRun", t);
187+
}
188+
})
190189
.subscribe();
191190
}
192191

0 commit comments

Comments
 (0)