From 0f7238a6cba77a692a14e826805b0880f37dad3e Mon Sep 17 00:00:00 2001 From: vponline Date: Tue, 16 Jan 2024 14:18:22 +0200 Subject: [PATCH 1/2] Increase OpsGenie limiter concurrency --- src/wallet-watcher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet-watcher.ts b/src/wallet-watcher.ts index 1b41b67..dfe0f27 100644 --- a/src/wallet-watcher.ts +++ b/src/wallet-watcher.ts @@ -12,7 +12,7 @@ import { ChainStates, ChainsConfig, Config, Wallet, Wallets } from './types'; import prisma from './database'; const limiter = new Bottleneck({ - maxConcurrent: 2, + maxConcurrent: 10, minTime: 300, }); From 2dfac2b7ddee73d834519d8894eaa6424976c480 Mon Sep 17 00:00:00 2001 From: vponline Date: Tue, 16 Jan 2024 15:17:52 +0200 Subject: [PATCH 2/2] Increase OpsGenie limiter concurrency --- src/wallet-watcher.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/wallet-watcher.ts b/src/wallet-watcher.ts index dfe0f27..60d3f43 100644 --- a/src/wallet-watcher.ts +++ b/src/wallet-watcher.ts @@ -16,7 +16,10 @@ const limiter = new Bottleneck({ 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