message: much faster rest
diff: @@ -64,6 +64,8 @@ async function cleanupQueues() {
  }
  async function processQueue() {
  + // Putting this code inside a function like this allows us to use tail recursion like a while loop without hitting the max stack error.
  + async function avoidMaxStackError() {
  if (
  (Object.keys(pathQueues).length) && !globallyRateLimited
  ) {
  @@ -110,12 +112,14 @@ async function processQueue() {
  }
  if (Object.keys(pathQueues).length) {
  - await delay(1000);
  - processQueue();
  + avoidMaxStackError();
  cleanupQueues();
  } else queueInProcess = false;
  }
  + return avoidMaxStackError()
  +}
  +
  processRateLimitedPaths();
  export const RequestManager = {
  