Fix sequential rate limiting

This commit is contained in:
Amish Shah
2017-04-11 17:54:03 +01:00
parent 9365272baf
commit 6495df50f9
2 changed files with 12 additions and 3 deletions

View File

@@ -38,7 +38,6 @@ class RESTManager {
makeRequest(method, url, auth, data, file) {
const apiRequest = new APIRequest(this, method, url, auth, data, file);
if (!this.handlers[apiRequest.route]) {
const RequestHandlerType = this.getRequestHandler();
this.handlers[apiRequest.route] = new RequestHandlerType(this, apiRequest.route);