Skip to content

Commit

Permalink
Code Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
AkshathSai committed Mar 27, 2024
1 parent 0b2459d commit a5d6ee7
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,12 @@ private void startBackgroundDownloads() {
downloadTasks.addAll(downloadTasksRepo.findAllByTaskStatus(STATUS.RETRY));
downloadTasks.addAll(downloadTasksRepo.findAllByTaskStatus(STATUS.NEW));

downloadTasks.forEach(downloadTask -> {
torrentDownloadService.startDownload(downloadTask);
});

downloadTasks.forEach(downloadTask -> torrentDownloadService.startDownload(downloadTask));
// Future Plan targeted for StructuredConcurrency Final release
// runAsStructuredConcurrent(downloadTasks);
}

/*private void runAsStructuredConcurrent(List<BackgroundDownloadTask> backgroundDownloadTasks) {
/* private void runAsStructuredConcurrent(List<BackgroundDownloadTask> backgroundDownloadTasks) {
ConJob conJob = new ConJob();
conJob.executeAll(backgroundDownloadTasks);
}*/
Expand Down

0 comments on commit a5d6ee7

Please sign in to comment.