Remove the debug print of batch deliver

This commit is contained in:
Feng Lee 2019-07-02 14:50:13 +08:00
parent 8c37ea3f38
commit f4a753f683
2 changed files with 1 additions and 6 deletions

View File

@ -195,4 +195,4 @@ set_alarm_history(Id, Desc) ->
His = #alarm_history{id = Id,
desc = Desc,
clear_at = os:timestamp()},
mnesia:dirty_write(?ALARM_HISTORY_TAB, His}).
mnesia:dirty_write(?ALARM_HISTORY_TAB, His).

View File

@ -234,11 +234,6 @@ connected(cast, {incoming, Packet = ?PACKET(Type)}, State) ->
connected(info, Deliver = {deliver, _Topic, _Msg},
State = #state{chan_state = ChanState}) ->
Delivers = emqx_misc:drain_deliver([Deliver]),
%% TODO: ...
case BatchLen = length(Delivers) of
1 -> ok;
N -> io:format("Batch Deliver: ~w~n", [N])
end,
case emqx_channel:handle_out(Delivers, ChanState) of
{ok, NChanState} ->
keep_state(State#state{chan_state = NChanState});