aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-12-15 17:00:22 +0100
committerFlorian Dold <florian.dold@gmail.com>2019-12-15 17:00:22 +0100
commit985c90e0adc80301ee842bc290041b6a7d59d51e (patch)
tree2ebfda0ce2da642891214d2fe2f2d4243fcea938 /src/util
parent4966376839365536923cd6cfbb86d15071432e1a (diff)
Christian's thresholds for throttling
Diffstat (limited to 'src/util')
-rw-r--r--src/util/RequestThrottler.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/RequestThrottler.ts b/src/util/RequestThrottler.ts
index c144cb152..01695ec37 100644
--- a/src/util/RequestThrottler.ts
+++ b/src/util/RequestThrottler.ts
@@ -26,7 +26,7 @@ import { getTimestampNow, Timestamp } from "../types/walletTypes";
/**
* Maximum request per second, per origin.
*/
-const MAX_PER_SECOND = 20;
+const MAX_PER_SECOND = 50;
/**
* Maximum request per minute, per origin.
@@ -36,7 +36,7 @@ const MAX_PER_MINUTE = 100;
/**
* Maximum request per hour, per origin.
*/
-const MAX_PER_HOUR = 5000;
+const MAX_PER_HOUR = 1000;
/**