diff --git a/src/main/java/io/cryostat/reports/ReportResource.java b/src/main/java/io/cryostat/reports/ReportResource.java index 9c37ae8..46c1e8f 100644 --- a/src/main/java/io/cryostat/reports/ReportResource.java +++ b/src/main/java/io/cryostat/reports/ReportResource.java @@ -96,11 +96,11 @@ public String getEval(RoutingContext ctx, @BeanParam RecordingFormData form) throws IOException { FileUpload upload = form.file; - Pair> tripleHelper = reportHelper(upload); - java.nio.file.Path file = tripleHelper.getLeft(); + Pair> uploadResult = handleUpload(upload); + java.nio.file.Path file = uploadResult.getLeft(); long timeout = TimeUnit.MILLISECONDS.toNanos(Long.parseLong(timeoutMs)); - long start = tripleHelper.getRight().getLeft(); - long elapsed = tripleHelper.getRight().getRight(); + long start = uploadResult.getRight().getLeft(); + long elapsed = uploadResult.getRight().getRight(); Predicate predicate = rfp.parse(form.filter); Future> evalMapFuture = null; @@ -120,7 +120,7 @@ public String getEval(RoutingContext ctx, @BeanParam RecordingFormData form) } } - private Pair> reportHelper(FileUpload upload) + private Pair> handleUpload(FileUpload upload) throws IOException { java.nio.file.Path file = upload.uploadedFile(); long timeout = TimeUnit.MILLISECONDS.toNanos(Long.parseLong(timeoutMs));