From 474c72d32d09c19ee6ccbedf308e0139d5c313bb Mon Sep 17 00:00:00 2001 From: tamaina Date: Sun, 15 Jan 2023 14:58:04 +0000 Subject: [PATCH] clean up --- packages/backend/src/core/DownloadService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/core/DownloadService.ts b/packages/backend/src/core/DownloadService.ts index d63310a045..b274807b8b 100644 --- a/packages/backend/src/core/DownloadService.ts +++ b/packages/backend/src/core/DownloadService.ts @@ -60,7 +60,7 @@ export class DownloadService { @bindThis public async fetchUrl(url: string): Promise { this.logger.info(`Downloading ${chalk.cyan(url)} ...`); - + const timeout = 30 * 1000; const operationTimeout = 60 * 1000; const maxSize = this.config.maxFileSize ?? 262144000; @@ -70,7 +70,7 @@ export class DownloadService { if (response.body === null) { throw new StatusError('No body', 400, 'No body'); } - + this.logger.succ(`Download finished: ${chalk.cyan(url)}`); return response as NonNullBodyResponse;