Skip to content

Commit

Permalink
Merge pull request #231 from qzhuyan/fix/william/default-payload-hdr
Browse files Browse the repository at this point in the history
fix: default value of payload_hdrs
  • Loading branch information
qzhuyan authored Sep 21, 2023
2 parents 84d40d0 + f7a94af commit 809fe59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/emqtt_bench.erl
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ loop(Parent, N, Client, PubSub, Opts) ->
end;
{publish, #{payload := Payload}} ->
inc_counter(recv),
maybe_check_payload_hdrs(Payload, proplists:get_value(payload_hdrs, Opts)),
maybe_check_payload_hdrs(Payload, proplists:get_value(payload_hdrs, Opts, [])),
loop(Parent, N, Client, PubSub, Opts);
{'EXIT', _Client, normal} ->
ok;
Expand Down

0 comments on commit 809fe59

Please sign in to comment.