Skip to content

Commit

Permalink
Add default flags in republish
Browse files Browse the repository at this point in the history
  • Loading branch information
terry-xiaoyu committed Nov 15, 2019
1 parent b1a942c commit 60e45c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/emqx_rule_actions.erl
Expand Up @@ -151,7 +151,7 @@ on_action_create_republish(Id, #{<<"target_topic">> := TargetTopic, <<"target_qo
id = emqx_guid:gen(),
qos = if TargetQoS =:= -1 -> 0; true -> TargetQoS end,
from = Id,
flags = #{},
flags = #{dup => false, retain => false},
headers = #{republish_by => Id},
topic = emqx_rule_utils:proc_tmpl(TopicTks, Selected),
payload = emqx_rule_utils:proc_tmpl(PayloadTks, Selected),
Expand Down

0 comments on commit 60e45c2

Please sign in to comment.