From 42f0bbbf672203327906d84d6a7a2adfbb7598b5 Mon Sep 17 00:00:00 2001 From: JianBo He Date: Mon, 24 Jun 2024 10:04:31 +0800 Subject: [PATCH] chore: update src/emqtt.erl Co-authored-by: zmstone --- src/emqtt.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emqtt.erl b/src/emqtt.erl index d1ec129..b904210 100644 --- a/src/emqtt.erl +++ b/src/emqtt.erl @@ -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