Skip to content
This repository was archived by the owner on Jun 24, 2024. It is now read-only.

Commit 711d57e

Browse files
committed
fix: disable resuming file uploads
This was slow and causing lock ups for larger numbers of simultaneous file uploads
1 parent ed4a2ca commit 711d57e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/sink.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,10 @@ module.exports = class SinkGCS extends EventEmitter {
221221
await this[ready];
222222
const file = this[getGcsFile](fileName);
223223
const saveFile = () =>
224-
file.save(fileContent, { metadata: { contentType } });
224+
file.save(fileContent, {
225+
metadata: { contentType },
226+
resumable: false,
227+
});
225228
try {
226229
return await pRetry(saveFile, { retries: 3 });
227230
} catch (err) {

0 commit comments

Comments
 (0)