diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-12-15 17:00:22 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-12-15 17:00:22 +0100 |
commit | 985c90e0adc80301ee842bc290041b6a7d59d51e (patch) | |
tree | 2ebfda0ce2da642891214d2fe2f2d4243fcea938 /src/util | |
parent | 4966376839365536923cd6cfbb86d15071432e1a (diff) |
Christian's thresholds for throttling
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/RequestThrottler.ts | 4 |
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; /** |