Skip to content

Commit

Permalink
Spotless adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
knighto82 committed Apr 9, 2024
1 parent 030cbe2 commit dd4aa19
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
@Getter
public class FusionAPIUploadOperations implements APIUploadOperations {

private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
private static final Logger logger =
LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());

private static final String UPLOAD_FAILED_EXCEPTION_MSG =
"Exception encountered while attempting to upload part, please try again";
Expand Down Expand Up @@ -219,7 +220,6 @@ protected MultipartTransferContext callAPIToUploadParts(MultipartTransferContext
int chunkSize = uploadPartSize * (1024 * 1024);
long maxInFluxBytes = maxInFluxDataSize * (1024L * 1024L);


byte[] buffer = new byte[chunkSize];
int partCnt = 1;
int totalBytes = 0;
Expand All @@ -232,7 +232,8 @@ protected MultipartTransferContext callAPIToUploadParts(MultipartTransferContext
int bytesRead;
while ((bytesRead = ur.getData().read(buffer)) != -1) {

logger.debug("Creating upload task for part number {}, bytes read for this part {}", partCnt, bytesRead);
logger.debug(
"Creating upload task for part number {}, bytes read for this part {}", partCnt, bytesRead);

final int currentPartCnt = partCnt;
final int currentBytesRead = bytesRead;
Expand Down Expand Up @@ -264,7 +265,8 @@ protected MultipartTransferContext callAPIToUploadParts(MultipartTransferContext
return mtx.transferred(chunkSize, totalBytes, partCnt);
}

private int easeDataPressure(List<CompletableFuture<Void>> futures) throws InterruptedException, ExecutionException {
private int easeDataPressure(List<CompletableFuture<Void>> futures)
throws InterruptedException, ExecutionException {

logger.debug("Reached max in-flux bytes - easing pressure");
for (CompletableFuture<Void> future : futures) {
Expand Down

0 comments on commit dd4aa19

Please sign in to comment.