Commit 0ce51300 authored by nanahira's avatar nanahira

fix

parent 8e296906
Pipeline #25384 passed with stages
in 2 minutes and 58 seconds
...@@ -271,7 +271,7 @@ export class PackagerService extends ConsoleLogger { ...@@ -271,7 +271,7 @@ export class PackagerService extends ConsoleLogger {
let tmpFilename: string; let tmpFilename: string;
try { try {
/*if (files.length > 2000) { if (files.length > 1000) {
// minio would skew the stream if it's too slow // minio would skew the stream if it's too slow
// use a tmp file to put the stream // use a tmp file to put the stream
...@@ -286,7 +286,7 @@ export class PackagerService extends ConsoleLogger { ...@@ -286,7 +286,7 @@ export class PackagerService extends ConsoleLogger {
}); });
// open the tmp file as a new stream // open the tmp file as a new stream
uploadStream = fs.createReadStream(tmpFilename); uploadStream = fs.createReadStream(tmpFilename);
}*/ }
const uploadPromise = this.s3.uploadStream(archiveName, uploadStream, { const uploadPromise = this.s3.uploadStream(archiveName, uploadStream, {
ContentType: 'application/tar+zstd', ContentType: 'application/tar+zstd',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment