Skip to content

Commit 6304204

Browse files
authored
Merge pull request #5286 from Eijebong/fix-write-file
Fix usage of `temporary.writeFile` in docker worker
2 parents 3328157 + 9bfaebf commit 6304204

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
audience: developers
2+
level: patch
3+
---
4+
Fix usage of `temporary.writeFile` in `uploadToS3` for docker-worker

workers/docker-worker/src/upload_to_s3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module.exports = async function uploadToS3 (
5050
// write the source out to a temporary file so that it can be
5151
// re-read into the request repeatedly
5252
if (typeof source === 'string') {
53-
await tmp.writeFile(source);
53+
tmp.writeFileSync(source);
5454
hash.update(source);
5555
} else {
5656
let stream = fs.createWriteStream(tmp.path);

0 commit comments

Comments
 (0)