File tree 1 file changed +4
-10
lines changed
1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -558,19 +558,13 @@ export abstract class APIClient {
558
558
const timeout = setTimeout ( ( ) => controller . abort ( ) , ms ) ;
559
559
560
560
return (
561
- this . getRequestClient ( )
562
- // use undefined this binding; fetch errors if bound to something else in browser/cloudflare
563
- . fetch . call ( undefined , url , { signal : controller . signal as any , ...options } )
564
- . finally ( ( ) => {
565
- clearTimeout ( timeout ) ;
566
- } )
561
+ // use undefined this binding; fetch errors if bound to something else in browser/cloudflare
562
+ this . fetch . call ( undefined , url , { signal : controller . signal as any , ...options } ) . finally ( ( ) => {
563
+ clearTimeout ( timeout ) ;
564
+ } )
567
565
) ;
568
566
}
569
567
570
- protected getRequestClient ( ) : RequestClient {
571
- return { fetch : this . fetch } ;
572
- }
573
-
574
568
private shouldRetry ( response : Response ) : boolean {
575
569
// Note this is not a standard header.
576
570
const shouldRetryHeader = response . headers . get ( 'x-should-retry' ) ;
You can’t perform that action at this time.
0 commit comments