Skip to content

Commit

Permalink
fix: oom
Browse files Browse the repository at this point in the history
  • Loading branch information
zmstone committed Dec 19, 2024
1 parent ad9cbaf commit 8818cb1
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 @@ -645,7 +645,7 @@ run(Parent, I, N, PubSub, Opts0, AddrList, HostList) ->
ID = I + 1 + proplists:get_value(startnumber, Opts),
spawn_opt(?MODULE, connect, [Parent, ID, PubSub, Opts], SpawnOpts),
timer:sleep(proplists:get_value(interval, Opts)),
run(Parent, I + 1, N, PubSub, Opts, AddrList, HostList).
run(Parent, I + 1, N, PubSub, Opts0, AddrList, HostList).

connect(Parent, N, PubSub, Opts) ->
process_flag(trap_exit, true),
Expand Down

0 comments on commit 8818cb1

Please sign in to comment.