]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Allow redis requests with no callbacks
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sun, 24 Sep 2023 12:39:17 +0000 (13:39 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sun, 24 Sep 2023 12:39:17 +0000 (13:39 +0100)
lualib/lua_redis.lua

index ead938a0a4b8cfc9855136a7339f3383284967ee..3163b45c644299955f84fa8ecc14cab9c9bea836 100644 (file)
@@ -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