Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

fix: retry interceptor params (#3220)

Wenzhao Hu2e2044a16e6a
diff --git a/packages/network/src/services/http/interceptors/retry-interceptor.ts b/packages/network/src/services/http/interceptors/retry-interceptor.ts
index dcc51c8a52..3a4bac099d 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<undefined>, Nullable<IRetryInterceptorFactoryParams>]> = (_accessor, params) => {
+export const RetryInterceptorFactory: HTTPInterceptorFnFactory<[Nullable<IRetryInterceptorFactoryParams>]> = (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 }));