commit
fa10394f37
|
@ -22,7 +22,7 @@
|
|||
|
||||
-export([passwd_hash/2]).
|
||||
|
||||
-type(hash_type() :: plain | md5 | sha | sha256 | pbkdf2).
|
||||
-type(hash_type() :: plain | md5 | sha | sha256 | pbkdf2 | bcrypt).
|
||||
|
||||
%%--------------------------------------------------------------------
|
||||
%% Authentication behavihour
|
||||
|
|
|
@ -382,6 +382,6 @@ stop(Reason, State) ->
|
|||
{stop, Reason, State}.
|
||||
|
||||
gc(State = #client_state{connection = Conn}) ->
|
||||
Cb = fun() -> Conn:gc() end,
|
||||
Cb = fun() -> Conn:gc(), emit_stats(State) end,
|
||||
emqttd_gc:maybe_force_gc(#client_state.force_gc_count, State, Cb).
|
||||
|
||||
|
|
|
@ -300,5 +300,6 @@ stop(Reason, State) ->
|
|||
{stop, Reason, State}.
|
||||
|
||||
gc(State) ->
|
||||
emqttd_gc:maybe_force_gc(#wsclient_state.force_gc_count, State).
|
||||
Cb = fun() -> emit_stats(State) end,
|
||||
emqttd_gc:maybe_force_gc(#wsclient_state.force_gc_count, State, Cb).
|
||||
|
||||
|
|
Loading…
Reference in New Issue