Skip to content

Commit 27f4730

Browse files
committed
refactor(renterd): improve uploads performance
1 parent 028f853 commit 27f4730

File tree

16 files changed

+348
-182
lines changed

16 files changed

+348
-182
lines changed

.changeset/chilled-days-live.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'renterd': minor
3+
---
4+
5+
The application no longer lags when uploading thousands of files.

.changeset/itchy-paws-call.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@siafoundation/react-core': minor
3+
---
4+
5+
Added useThrottledStateMap.

.changeset/light-ravens-own.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@siafoundation/react-core': minor
3+
---
4+
5+
Added `throttle`, often useful for mutation callbacks.

apps/renterd/contexts/filesManager/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ export type ExplorerMode = 'directory' | 'flat'
8585
export type UploadStatus = 'queued' | 'uploading' | 'processing'
8686

8787
export type ObjectUploadData = ObjectData & {
88-
upload?: MultipartUpload
88+
multipartId?: string
89+
multipartUpload?: MultipartUpload
8990
uploadStatus: UploadStatus
9091
uploadAbort?: () => Promise<void>
9192
uploadFile?: File

0 commit comments

Comments
 (0)