Skip to content

Commit

Permalink
[Minor] Allow redis requests with no callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Sep 24, 2023
1 parent c6bec0f commit 08efef2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lualib/lua_redis.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 08efef2

Please sign in to comment.