diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-09-24 13:39:17 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-09-24 13:39:17 +0100 |
commit | 08efef2c08a7f92fd73dcddd39e40ddcf98ee8fa (patch) | |
tree | e5e29aa5bb531f5dd4e410ccdbdb45786e776df1 /lualib/lua_redis.lua | |
parent | c6bec0f8dfa6790b8a3f919aeb09440b4d367a42 (diff) | |
download | rspamd-08efef2c08a7f92fd73dcddd39e40ddcf98ee8fa.tar.gz rspamd-08efef2c08a7f92fd73dcddd39e40ddcf98ee8fa.zip |
[Minor] Allow redis requests with no callbacks
Diffstat (limited to 'lualib/lua_redis.lua')
-rw-r--r-- | lualib/lua_redis.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lualib/lua_redis.lua b/lualib/lua_redis.lua index ead938a0a..3163b45c6 100644 --- a/lualib/lua_redis.lua +++ b/lualib/lua_redis.lua @@ -955,7 +955,7 @@ local function rspamd_redis_make_request(task, redis_params, key, is_write, callback(err, data, addr) end end - if not task or not redis_params or not callback or not command then + if not task or not redis_params or not command then return false, nil, nil end @@ -1046,7 +1046,7 @@ exports.redis_make_request = rspamd_redis_make_request local function redis_make_request_taskless(ev_base, cfg, redis_params, key, is_write, callback, command, args, extra_opts) - if not ev_base or not redis_params or not callback or not command then + if not ev_base or not redis_params or not command then return false, nil, nil end |