Skip to content

Commit

Permalink
Merge branch 'master' into gh-4133-contract_code_endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
zxq9 committed Jul 6, 2023
2 parents 34ea6c9 + ca3f1e8 commit a7101c7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/aedevmode/src/aedevmode_emitter.erl
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@
start_link() ->
gen_server:start_link({local, ?MODULE}, ?MODULE, [], []).

%% On a reasonably fast machine, emission takes ca 2.5 s/1k keyblocks.
%% While we could try to guess at a reasonable timeout value based on
%% the requested number, let's be daring and use no timeout.
emit_keyblocks(N) when is_integer(N), N > 0 ->
gen_server:call(?MODULE, {emit_keyblocks, N}).
gen_server:call(?MODULE, {emit_keyblocks, N}, infinity).

set_keyblock_interval(I) when is_integer(I), I >= 0 ->
gen_server:call(?MODULE, {set_keyblock_interval, I}).
Expand Down

0 comments on commit a7101c7

Please sign in to comment.