mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-15 12:50:47 +02:00
Disable rate limiter in squeak controller (#947)
This commit is contained in:
parent
af0e1f477c
commit
cca4e4a6c7
1 changed files with 5 additions and 5 deletions
|
|
@ -70,11 +70,11 @@ class SqueakController:
|
|||
# Check if squeak is valid.
|
||||
CheckSqueak(squeak, skipDecryptionCheck=True)
|
||||
squeak_entry = self.squeak_core.validate_squeak(squeak)
|
||||
# Check if rate limit is violated.
|
||||
if not skip_rate_limit:
|
||||
if not self.squeak_rate_limiter.should_rate_limit_allow(squeak):
|
||||
raise Exception(
|
||||
"Exceeded allowed number of squeaks per address per block.")
|
||||
# TODO: Check if rate limit is violated.
|
||||
# if not skip_rate_limit:
|
||||
# if not self.squeak_rate_limiter.should_rate_limit_allow(squeak):
|
||||
# raise Exception(
|
||||
# "Exceeded allowed number of squeaks per address per block.")
|
||||
# Save the squeak.
|
||||
logger.info("Saving squeak: {}".format(
|
||||
get_hash(squeak).hex(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue