refactor: move MAX_CONCURRENT_UPLOADS inside createUploader scope

This commit is contained in:
Prem Palanisamy
2026-04-09 12:26:00 +01:00
parent b06e45f281
commit da81ffbddb
+2 -2
View File
@@ -39,8 +39,6 @@ const temporaryFunctions = (region: string, projectId: string) => {
return new Functions(clientProject);
};
const MAX_CONCURRENT_UPLOADS = 5;
const createUploader = () => {
const { subscribe, set, update } = writable<Uploader>({
isOpen: false,
@@ -107,6 +105,8 @@ const createUploader = () => {
}
};
const MAX_CONCURRENT_UPLOADS = 5;
const uploadFiles = async (
region: string,
projectId: string,