diff options
| author | Sam Wilkins <samwilkins333@gmail.com> | 2019-09-18 04:22:54 -0400 |
|---|---|---|
| committer | Sam Wilkins <samwilkins333@gmail.com> | 2019-09-18 04:22:54 -0400 |
| commit | 960b5babede63780bf91ce8fe8658e8c41925ecb (patch) | |
| tree | 9a44d626751f2f0f0f914039dcc6d8f5b325f249 /src/client/util/Import & Export | |
| parent | 3f6f0a878b15aa5c569a8b522d1b24915749498e (diff) | |
final batching expansion
Diffstat (limited to 'src/client/util/Import & Export')
| -rw-r--r-- | src/client/util/Import & Export/DirectoryImportBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/Import & Export/DirectoryImportBox.tsx b/src/client/util/Import & Export/DirectoryImportBox.tsx index a86ef9a31..e3958e3a4 100644 --- a/src/client/util/Import & Export/DirectoryImportBox.tsx +++ b/src/client/util/Import & Export/DirectoryImportBox.tsx @@ -103,7 +103,7 @@ export default class DirectoryImportBox extends React.Component<FieldViewProps> runInAction(() => this.phase = `Internal: uploading ${this.quota - this.completed} files to Dash...`); - const uploads = await validated.batchedMapAsync<FileResponse>(15, async batch => { + const uploads = await validated.batchedMapAsync<FileResponse>({ batchSize: 15 }, async batch => { const formData = new FormData(); const parameters = { method: 'POST', body: formData }; |
