Skip to content

Commit 0dc9d4a

Browse files
committed
refactor: rename worker function to uploadPart for clarity
1 parent 141b10b commit 0dc9d4a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/services/network/network-facade.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ export class NetworkFacade {
243243
let partIndex = 0;
244244
const limitConcurrency = 6;
245245

246-
const worker = async (upload: UploadTask) => {
246+
const uploadPart = async (upload: UploadTask) => {
247247
const { etag } = await this.uploadService.uploadFile(upload.urlToUpload, upload.contentToUpload, {
248248
abortController: abortable,
249249
progressCallback: (loadedBytes: number) => {
@@ -258,7 +258,7 @@ export class NetworkFacade {
258258
};
259259

260260
const uploadQueue: QueueObject<UploadTask> = queue<UploadTask>(function (task, callback) {
261-
worker(task)
261+
uploadPart(task)
262262
.then(() => {
263263
callback();
264264
})

0 commit comments

Comments
 (0)