Skip to content

Commit

Permalink
chore: update src/emqtt.erl
Browse files Browse the repository at this point in the history
Co-authored-by: zmstone <[email protected]>
  • Loading branch information
HJianBo and zmstone authored Jun 24, 2024
1 parent 3124b49 commit 42f0bbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/emqtt.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1522,7 +1522,7 @@ put_max_retry_count(N) when is_integer(N) ->
erlang:put(max_retry_count, N).

get_max_retry_count() ->
Default = 3,
Default = 0,
case erlang:get(max_retry_count) of
undefined -> Default;
Value -> Value
Expand Down

0 comments on commit 42f0bbb

Please sign in to comment.