Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecot committed Jan 14, 2025
1 parent 389eafe commit 070a629
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/redis/resources/IpRpcEndpointsIndex/IpRpcEndpointsData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface RequestStats {

export interface ChainEndpoint {
chainId: string;
alias: "Mainnet" | "Testnet" | "Sepolia-Testnet" | "Alfajores-Testnet";
alias: "Mainnet" | "Testnet" | "Sepolia-Testnet";
ChainDisplayName: string;
DisplayName: string;
geolocations: string[];
Expand Down Expand Up @@ -1053,7 +1053,7 @@ export const IpRpcEndpointsData: ChainEndpoint[] = [
// },
// {
// "chainId": "celoa",
// "alias": "Alfajores-Testnet",
// "alias": "Testnet",
// "ChainDisplayName": "Celo",
// "DisplayName": "Celo Alfajores (CELOA)",
// "geolocations": ["US", "EU", "ASIA"],
Expand Down
4 changes: 2 additions & 2 deletions src/redis/resources/IpRpcEndpointsIndex/check_links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async function checkEndpointWithPattern(url: string, patternName: string, patter
error: response.status === 200 ? undefined : `Status ${response.status}`
};
}
} catch (e) {
} catch (e: any) {
return {
status: 'unhealthy',
url,
Expand Down Expand Up @@ -157,7 +157,7 @@ async function checkEndpoints() {
if (protocol === 'rest' || protocol === 'jsonrpc') {
console.log(' Trying all patterns...');
// Try all patterns
const patternResults = [];
const patternResults: CheckResult[] = [];
for (const [patternName, pattern] of Object.entries(PATTERNS)) {
const result = await checkEndpointWithPattern(url, patternName, pattern);
if (result.status === 'healthy') {
Expand Down

0 comments on commit 070a629

Please sign in to comment.