feat: base work

This commit is contained in:
TrèsAbhi committed 2024-04-16 13:45:02 -05:00
1 parent 9d715c23e5
commit 310640c1ec
6 files changed
+38 -10

No files matched your search

+2 -1
View File
@@ -10,7 +10,8 @@ type BlitzResponse<Data extends object> =
data: Data;
};
const MAX_CALLS_PER_SECOND = 10;
// 1 less than 10 to ensure not bad things lol
const MAX_CALLS_PER_SECOND = 9;
const queue: { url: string; resolve: (data: object) => void }[] = [];
let inProgress = 0;