Skip to content

Commit

Permalink
return from publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Nov 19, 2023
1 parent c807124 commit d23f1a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/redis_lua/broker_publish_idempotent.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ if result_key_expire ~= '' then
end
end

redis.call(publish_command, channel, payload)
local res = redis.call(publish_command, channel, payload)

if result_key_expire ~= '' then
redis.call("hset", result_key, "e", "")
redis.call("expire", result_key, result_key_expire)
end

return res

0 comments on commit d23f1a0

Please sign in to comment.