Skip to content

Commit

Permalink
Merge pull request #48 from api3dao/increase-opsgenie-concurrency
Browse files Browse the repository at this point in the history
Increase OpsGenie limiter concurrency
  • Loading branch information
vponline authored Jan 22, 2024
2 parents 208c2b1 + 2dfac2b commit b8f856d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/wallet-watcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ import { ChainStates, ChainsConfig, Config, Wallet, Wallets } from './types';
import prisma from './database';

const limiter = new Bottleneck({
maxConcurrent: 2,
maxConcurrent: 10,
minTime: 300,
});

const { limitedSendToOpsGenieLowLevel, limitedCloseOpsGenieAlertWithAlias } = getOpsGenieLimiter();
const { limitedSendToOpsGenieLowLevel, limitedCloseOpsGenieAlertWithAlias } = getOpsGenieLimiter({
minTime: 10,
maxConcurrent: 10,
});

/**
* Gets the chain name from @api3/chains for the provided chain id
Expand Down

0 comments on commit b8f856d

Please sign in to comment.