File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -523,19 +523,13 @@ export abstract class APIClient {
523
523
const timeout = setTimeout ( ( ) => controller . abort ( ) , ms ) ;
524
524
525
525
return (
526
- this . getRequestClient ( )
527
- // use undefined this binding; fetch errors if bound to something else in browser/cloudflare
528
- . fetch . call ( undefined , url , { signal : controller . signal as any , ...options } )
529
- . finally ( ( ) => {
530
- clearTimeout ( timeout ) ;
531
- } )
526
+ // use undefined this binding; fetch errors if bound to something else in browser/cloudflare
527
+ this . fetch . call ( undefined , url , { signal : controller . signal as any , ...options } ) . finally ( ( ) => {
528
+ clearTimeout ( timeout ) ;
529
+ } )
532
530
) ;
533
531
}
534
532
535
- protected getRequestClient ( ) : RequestClient {
536
- return { fetch : this . fetch } ;
537
- }
538
-
539
533
private shouldRetry ( response : Response ) : boolean {
540
534
// Note this is not a standard header.
541
535
const shouldRetryHeader = response . headers . get ( 'x-should-retry' ) ;
You can’t perform that action at this time.
0 commit comments