Skip to content

Commit

Permalink
timeouts are not needed when delay has been configured to infinity
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonVides committed Nov 26, 2024
1 parent a86bd20 commit cf873f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/throttle/amoc_throttle_process.erl
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ maybe_stop_timer(#state{tref = TRef}) ->
consume_all_timer_ticks(delay_between_executions).

timeout(#state{delay_between_executions = infinity}) ->
?DEFAULT_MSG_TIMEOUT;
infinity;
timeout(#state{delay_between_executions = Delay}) ->
Delay + ?DEFAULT_MSG_TIMEOUT.

Expand Down

0 comments on commit cf873f1

Please sign in to comment.