From a4d903db8c89631583392f4ff4eb1d00f79cad49 Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Mon, 15 Aug 2022 17:42:10 -0400 Subject: [PATCH] Removed commented out code for /ping --- src/mosaic.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/mosaic.ts b/src/mosaic.ts index 9583cae..79327a6 100644 --- a/src/mosaic.ts +++ b/src/mosaic.ts @@ -7,15 +7,8 @@ export const handleMosaic = async ( const mosaicDomains = Constants.MOSAIC_DOMAIN_LIST; let selectedDomain: string | null = null; while (selectedDomain === null && mosaicDomains.length > 0) { - // fetch /ping on a random domain const domain = mosaicDomains[Math.floor(Math.random() * mosaicDomains.length)]; - // let response = await fetch(`https://${domain}/ping`); - // if (response.status === 200) { selectedDomain = domain; - // } else { - // mosaicDomains = mosaicDomains.filter(d => d !== domain); - // console.log(`${domain} is not available, removing from list`); - // } } // Fallback if all Mosaic servers are down