From aead5eac64dda932568f1235a6da783c824a6802 Mon Sep 17 00:00:00 2001 From: Wenzhao Hu <12122021+wzhudev@users.noreply.github.com> Date: Wed, 28 Aug 2024 11:59:35 +0800 Subject: [PATCH] fix: retry interceptor params --- .../network/src/services/http/interceptors/retry-interceptor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/network/src/services/http/interceptors/retry-interceptor.ts b/packages/network/src/services/http/interceptors/retry-interceptor.ts index dcc51c8a52d..3a4bac099d0 100644 --- a/packages/network/src/services/http/interceptors/retry-interceptor.ts +++ b/packages/network/src/services/http/interceptors/retry-interceptor.ts @@ -26,7 +26,7 @@ export interface IRetryInterceptorFactoryParams { delayInterval?: number; } -export const RetryInterceptorFactory: HTTPInterceptorFnFactory<[Nullable, Nullable]> = (_accessor, params) => { +export const RetryInterceptorFactory: HTTPInterceptorFnFactory<[Nullable]> = (params) => { const maxRetryAttempts = params?.maxRetryAttempts ?? DEFAULT_MAX_RETRY_ATTEMPTS; const delayInterval = params?.delayInterval ?? DELAY_INTERVAL; return (request, next) => next(request).pipe(retry({ delay: delayInterval, count: maxRetryAttempts }));