summaryrefslogtreecommitdiff
path: root/searx/plugins
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2022-07-15 18:38:32 +0200
committerAlexandre Flament <alex@al-f.net>2022-11-05 12:04:50 +0100
commitfe419e355bf1527c51e3aee98495d08b89510320 (patch)
tree0ed03d5e3d77e68ac5a5834e5890f5f27fe29fe7 /searx/plugins
parentd764d94a70b0b10291105a867227975d59af5675 (diff)
downloadsearxng-fe419e355bf1527c51e3aee98495d08b89510320.tar.gz
searxng-fe419e355bf1527c51e3aee98495d08b89510320.zip
The checker requires Redis
Remove the abstraction in searx.shared.SharedDict. Implement a basic and dedicated scheduler for the checker using a Redis script.
Diffstat (limited to 'searx/plugins')
-rw-r--r--searx/plugins/limiter.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/searx/plugins/limiter.py b/searx/plugins/limiter.py
index c6f5d6a0f..c11fd506b 100644
--- a/searx/plugins/limiter.py
+++ b/searx/plugins/limiter.py
@@ -93,9 +93,8 @@ def init(app, settings):
if not settings['server']['limiter']:
return False
- logger.debug("init limiter DB") # pylint: disable=undefined-variable
- if not redisdb.init():
- logger.error("init limiter DB failed!!!") # pylint: disable=undefined-variable
+ if not redisdb.client():
+ logger.error("The limiter requires Redis") # pylint: disable=undefined-variable
return False
app.before_request(pre_request)