Skip to content

Commit da81ffb

Browse files
committed
refactor: move MAX_CONCURRENT_UPLOADS inside createUploader scope
1 parent b06e45f commit da81ffb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/stores/uploader.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ const temporaryFunctions = (region: string, projectId: string) => {
3939
return new Functions(clientProject);
4040
};
4141

42-
const MAX_CONCURRENT_UPLOADS = 5;
43-
4442
const createUploader = () => {
4543
const { subscribe, set, update } = writable<Uploader>({
4644
isOpen: false,
@@ -107,6 +105,8 @@ const createUploader = () => {
107105
}
108106
};
109107

108+
const MAX_CONCURRENT_UPLOADS = 5;
109+
110110
const uploadFiles = async (
111111
region: string,
112112
projectId: string,

0 commit comments

Comments
 (0)