Handle the {ok, I} return
This commit is contained in:
parent
e972103f74
commit
5ef4fce141
|
@ -25,8 +25,8 @@
|
|||
-spec(conn_max_gc_count() -> integer()).
|
||||
conn_max_gc_count() ->
|
||||
case emqttd:env(conn_force_gc_count) of
|
||||
undefined -> undefined;
|
||||
I when I > 0 -> I + rand:uniform(I)
|
||||
{ok, I} when I > 0 -> I + rand:uniform(I);
|
||||
undefined -> undefined
|
||||
end.
|
||||
|
||||
-spec(reset_conn_gc_count(pos_integer(), tuple()) -> tuple()).
|
||||
|
|
Loading…
Reference in New Issue