fix and update
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { ensureApiGatewayReady, invalidateApiGatewayReady } from '@/lib/api';
|
||||
import { ensureApiGatewayReady } from '@/lib/api';
|
||||
|
||||
const GATEWAY_RETRY_STATUS = new Set([502, 503, 504]);
|
||||
const MEDIA_FETCH_MAX_ATTEMPTS = 8;
|
||||
@@ -32,7 +32,6 @@ export async function fetchMediaBlobWithRetry(
|
||||
});
|
||||
|
||||
if (GATEWAY_RETRY_STATUS.has(response.status) && attempt + 1 < MEDIA_FETCH_MAX_ATTEMPTS) {
|
||||
invalidateApiGatewayReady();
|
||||
await sleep(350 * (attempt + 1));
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user