Skip to content

Commit

Permalink
use upload timeout for sidecar report generation
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Jan 31, 2025
1 parent 2e8aa4f commit 0e20263
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/io/cryostat/reports/ReportsServiceImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ class ReportsServiceImpl implements ReportsService {

private static final String NO_SIDECAR_URL = "http://localhost/";

@ConfigProperty(name = ConfigProperties.CONNECTIONS_FAILED_TIMEOUT)
Duration connectionFailedTimeout;
@ConfigProperty(name = ConfigProperties.CONNECTIONS_UPLOAD_TIMEOUT)
Duration uploadFailedTimeout;

@ConfigProperty(name = ConfigProperties.REPORTS_SIDECAR_URL)
String sidecarUri;
Expand All @@ -59,7 +59,7 @@ public Uni<Map<String, AnalysisResult>> reportFor(
ActiveRecording recording, Predicate<IRule> predicate) {
InputStream stream;
try {
stream = helper.getActiveInputStream(recording, connectionFailedTimeout);
stream = helper.getActiveInputStream(recording, uploadFailedTimeout);
} catch (Exception e) {
throw new ReportGenerationException(e);
}
Expand Down

0 comments on commit 0e20263

Please sign in to comment.