From 29056d89e2019b979dfec22d771d1c2690b7e2de Mon Sep 17 00:00:00 2001 From: mchrza Date: Tue, 15 Oct 2024 16:33:10 +0200 Subject: [PATCH] Removing comments which were only used for local testing. Signed-off-by: Maximilian Chrzan Signed-off-by: mchrza --- .../xyz/jobs/steps/impl/transport/ImportFilesToSpace.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xyz-jobs/xyz-job-steps/src/main/java/com/here/xyz/jobs/steps/impl/transport/ImportFilesToSpace.java b/xyz-jobs/xyz-job-steps/src/main/java/com/here/xyz/jobs/steps/impl/transport/ImportFilesToSpace.java index d7ecf09f0..589684514 100644 --- a/xyz-jobs/xyz-job-steps/src/main/java/com/here/xyz/jobs/steps/impl/transport/ImportFilesToSpace.java +++ b/xyz-jobs/xyz-job-steps/src/main/java/com/here/xyz/jobs/steps/impl/transport/ImportFilesToSpace.java @@ -25,6 +25,7 @@ import static com.here.xyz.jobs.steps.execution.LambdaBasedStep.ExecutionMode.SYNC; import static com.here.xyz.jobs.steps.impl.transport.ImportFilesToSpace.EntityPerLine.Feature; import static com.here.xyz.jobs.steps.impl.transport.ImportFilesToSpace.EntityPerLine.FeatureCollection; +import static com.here.xyz.jobs.steps.impl.transport.ImportFilesToSpace.Format.CSV_GEOJSON; import static com.here.xyz.jobs.steps.impl.transport.ImportFilesToSpace.Format.CSV_JSON_WKB; import static com.here.xyz.jobs.steps.impl.transport.ImportFilesToSpace.Format.GEOJSON; import static com.here.xyz.jobs.steps.impl.transport.TransportTools.Phase.JOB_EXECUTOR; @@ -219,9 +220,9 @@ public int getEstimatedExecutionSeconds() { @Override public ExecutionMode getExecutionMode() { //CSV is not supported in SYNC mode - //if (format == CSV_JSON_WKB || format == CSV_GEOJSON) + if (format == CSV_JSON_WKB || format == CSV_GEOJSON) return ASYNC; -// return getUncompressedUploadBytesEstimation() > MAX_INPUT_BYTES_FOR_SYNC_IMPORT ? ASYNC : SYNC; + return getUncompressedUploadBytesEstimation() > MAX_INPUT_BYTES_FOR_SYNC_IMPORT ? ASYNC : SYNC; } @Override