Skip to content

Commit

Permalink
renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Sep 27, 2023
1 parent 3301feb commit fc3b544
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/io/cryostat/reports/ReportResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ public String getEval(RoutingContext ctx, @BeanParam RecordingFormData form)
throws IOException {
FileUpload upload = form.file;

Pair<java.nio.file.Path, Pair<Long, Long>> tripleHelper = reportHelper(upload);
java.nio.file.Path file = tripleHelper.getLeft();
Pair<java.nio.file.Path, Pair<Long, Long>> 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<IRule> predicate = rfp.parse(form.filter);
Future<Map<String, AnalysisResult>> evalMapFuture = null;
Expand All @@ -120,7 +120,7 @@ public String getEval(RoutingContext ctx, @BeanParam RecordingFormData form)
}
}

private Pair<java.nio.file.Path, Pair<Long, Long>> reportHelper(FileUpload upload)
private Pair<java.nio.file.Path, Pair<Long, Long>> handleUpload(FileUpload upload)
throws IOException {
java.nio.file.Path file = upload.uploadedFile();
long timeout = TimeUnit.MILLISECONDS.toNanos(Long.parseLong(timeoutMs));
Expand Down

0 comments on commit fc3b544

Please sign in to comment.