File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,8 +12,7 @@ import { FortniteAPIResponseData } from './httpStructs';
1212class HTTP {
1313 public client : Client ;
1414 public axios : AxiosInstance ;
15- public statsAxios : RateLimitedAxiosInstance ;
16-
15+ public statsAxios : RateLimitedAxiosInstance ;
1716 constructor ( client : Client ) {
1817 this . client = client ;
1918
@@ -28,9 +27,9 @@ class HTTP {
2827 Authorization : this . client . config . apiKey ,
2928 } : { } ,
3029 } ,
31-
3230 } ) ;
33- this . statsAxios = rateLimit ( this . axios , { maxRequests : 3 , perMilliseconds : 1100 , maxRPS : 3 } ) ;
31+
32+ this . statsAxios = rateLimit ( this . axios , { maxRequests : 3 , perMilliseconds : 1100 } ) ;
3433 }
3534
3635 public async fetch ( url : string , params ?: any ) : Promise < FortniteAPIResponseData > {
@@ -70,7 +69,7 @@ class HTTP {
7069 throw e ;
7170 }
7271 }
73-
72+
7473 public async fetchStats ( url : string , params ?: any ) : Promise < FortniteAPIResponseData > {
7574 try {
7675 const response = await this . statsAxios . get ( url , {
You can’t perform that action at this time.
0 commit comments