Skip to content

Commit

Permalink
Fix jacoco
Browse files Browse the repository at this point in the history
  • Loading branch information
kifj committed Mar 7, 2024
1 parent 262616e commit 70c8ae2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
<jboss.home>/opt/wildfly-${wildfly.version}</jboss.home>
<junit.jupiter.version>5.10.2</junit.jupiter.version>
<jacoco.version>0.8.10</jacoco.version>
<jacoco.append>true</jacoco.append>
<arquillian.version>1.8.0.Final</arquillian.version>
<arquillian.wildfly.version>5.0.1.Final</arquillian.wildfly.version>
<jkube.version>1.16.0</jkube.version>
Expand Down
6 changes: 5 additions & 1 deletion src/main/java/x1/stomp/boundary/QuoteResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,11 @@ public void getQuotes(
@Parameter(description = "Stock symbols", example = "[\"GOOG\"]") @QueryParam("key") @MDCKey(MDC_KEY) List<String> keys,
@Suspended AsyncResponse response) {
var baseUriBuilder = uriInfo.getBaseUriBuilder();
withTimeoutHandler(response).execute(() -> response.resume(retrieveQuotes(keys, baseUriBuilder)));
withTimeoutHandler(response).execute(() -> {
try (var r = retrieveQuotes(keys, baseUriBuilder)) {
response.resume(r);
}
});
}

private Response retrieveQuotes(List<String> keys, UriBuilder baseUriBuilder) {
Expand Down

0 comments on commit 70c8ae2

Please sign in to comment.