From 646eba930fc6c4a0c4ae300338ba8f8c79af0b95 Mon Sep 17 00:00:00 2001 From: HelloZeroNet Date: Wed, 30 Mar 2016 23:01:05 +0200 Subject: [PATCH] Change update spam rate limit to 20 secs --- src/File/FileRequest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/File/FileRequest.py b/src/File/FileRequest.py index fced4797..08e3600d 100644 --- a/src/File/FileRequest.py +++ b/src/File/FileRequest.py @@ -65,8 +65,8 @@ class FileRequest(object): if not RateLimit.isAllowed(event): # There was already an update for this file in the last 10 second time.sleep(5) self.response({"ok": "File update queued"}) - # If called more than once within 10 sec only keep the last update - RateLimit.callAsync(event, max(self.connection.bad_actions, 10), self.actionUpdate, params) + # If called more than once within 20 sec only keep the last update + RateLimit.callAsync(event, max(self.connection.bad_actions, 20), self.actionUpdate, params) else: func_name = "action" + cmd[0].upper() + cmd[1:] func = getattr(self, func_name, None)