From 4326e407835fb7306bf3b18896e7092752a46473 Mon Sep 17 00:00:00 2001 From: Paul Noel Date: Mon, 30 Oct 2023 08:50:32 -0500 Subject: [PATCH] cloud_functions: prettier check --- cloud_functions/src/wormchainMonitor.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cloud_functions/src/wormchainMonitor.ts b/cloud_functions/src/wormchainMonitor.ts index d15b9e27..f7fd299f 100644 --- a/cloud_functions/src/wormchainMonitor.ts +++ b/cloud_functions/src/wormchainMonitor.ts @@ -77,10 +77,7 @@ export async function wormchainMonitor(req: any, res: any) { try { for (const info of chainInfos) { // Get wormchain info - const fcClient: RetrievedInfo = await getClientInfo( - WormchainRPCs, - info.wormchainClientId - ); + const fcClient: RetrievedInfo = await getClientInfo(WormchainRPCs, info.wormchainClientId); // Get foreign chain info const wcClient: RetrievedInfo = await getClientInfo( info.foreignChainURLs, @@ -110,7 +107,7 @@ export async function wormchainMonitor(req: any, res: any) { console.error('Pager threshold exceeded for connection: wormchain <->' + info.chain); alarmPagerDutyInfo.summary = `${info.chain} <-> wormchain is more than 2/3 through its trusting period.`; await sendToPagerDuty(alarmPagerDutyInfo); - } + } // This check will send to slack for both the slack and pager thresholds exceeded. if (now >= fcSlackThreshold || now >= wcSlackThreshold) { console.error('Slack threshold exceeded for connection: wormchain <->' + info.chain);