Skip to content

Commit

Permalink
cloud_functions: prettier check
Browse files Browse the repository at this point in the history
  • Loading branch information
panoel committed Oct 30, 2023
1 parent 2e34b36 commit 4326e40
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cloud_functions/src/wormchainMonitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 4326e40

Please sign in to comment.