Compare commits
1 Commits
fix/hashli
...
fix/fallba
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2bb211c979 |
@@ -55,6 +55,8 @@ const RETRYABLE_MESSAGE_PATTERNS = [
|
|||||||
"504",
|
"504",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
const MAX_FALLBACK_ATTEMPTS = 10
|
||||||
|
|
||||||
export interface ErrorInfo {
|
export interface ErrorInfo {
|
||||||
name?: string
|
name?: string
|
||||||
message?: string
|
message?: string
|
||||||
@@ -108,7 +110,10 @@ export function hasMoreFallbacks(
|
|||||||
fallbackChain: FallbackEntry[],
|
fallbackChain: FallbackEntry[],
|
||||||
attemptCount: number,
|
attemptCount: number,
|
||||||
): boolean {
|
): boolean {
|
||||||
return attemptCount < fallbackChain.length
|
return (
|
||||||
|
attemptCount < fallbackChain.length &&
|
||||||
|
attemptCount < MAX_FALLBACK_ATTEMPTS
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user