tus: restore higher chunk size (10MB -> 25MB) (#1774)

It was previously reduced to 10MB (d1447083) with the assumption that the slow disk write was causing the "lock" issue.

Now that the backend has implemented a new locking mechanism, restore to a larger chunk to reduce the number of PATCH calls.

```
10MB  ->  2s/call
25MB  ->  6s/call (similar to what I see with Google Drive)
100MB -> 25s/call
```
This commit is contained in:
infinite-persistence 2022-06-29 20:34:25 +08:00 committed by GitHub
parent c2b911d73a
commit 70ea3f0812
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,7 @@ import { LBRY_WEB_PUBLISH_API_V2 } from 'config';
const RESUMABLE_ENDPOINT = LBRY_WEB_PUBLISH_API_V2;
const RESUMABLE_ENDPOINT_METHOD = 'publish';
const UPLOAD_CHUNK_SIZE_BYTE = 10 * 1024 * 1024;
const UPLOAD_CHUNK_SIZE_BYTE = 25 * 1024 * 1024;
const STATUS_CONFLICT = 409;
const STATUS_LOCKED = 423;