diff --git a/packages/protocol-dashboard/src/utils/fetch.ts b/packages/protocol-dashboard/src/utils/fetch.ts index 937d638f58f..126af2e3065 100644 --- a/packages/protocol-dashboard/src/utils/fetch.ts +++ b/packages/protocol-dashboard/src/utils/fetch.ts @@ -31,15 +31,8 @@ export const withTimeout = async ( // TODO: put in env vars for staging export const fetchUntilSuccess = async (endpoints: string[]): Promise => { try { - const response = await fetchWithTimeout('https://api.audius.co') - const allHealthyDps = response.data as string[] - const allowedEndpoints = endpoints.filter(endpoint => - allHealthyDps.some(url => endpoint.startsWith(url)) - ) - // Pick a random endpoint from the allowed endpoints - const endpoint = - allowedEndpoints[Math.floor(Math.random() * allowedEndpoints.length)] + const endpoint = endpoints[Math.floor(Math.random() * endpoints.length)] console.info('Attempting endpoint: ', endpoint) return await fetchWithTimeout(endpoint) } catch (e) {