Remove the debug print of batch deliver
This commit is contained in:
parent
8c37ea3f38
commit
f4a753f683
|
@ -195,4 +195,4 @@ set_alarm_history(Id, Desc) ->
|
||||||
His = #alarm_history{id = Id,
|
His = #alarm_history{id = Id,
|
||||||
desc = Desc,
|
desc = Desc,
|
||||||
clear_at = os:timestamp()},
|
clear_at = os:timestamp()},
|
||||||
mnesia:dirty_write(?ALARM_HISTORY_TAB, His}).
|
mnesia:dirty_write(?ALARM_HISTORY_TAB, His).
|
||||||
|
|
|
@ -234,11 +234,6 @@ connected(cast, {incoming, Packet = ?PACKET(Type)}, State) ->
|
||||||
connected(info, Deliver = {deliver, _Topic, _Msg},
|
connected(info, Deliver = {deliver, _Topic, _Msg},
|
||||||
State = #state{chan_state = ChanState}) ->
|
State = #state{chan_state = ChanState}) ->
|
||||||
Delivers = emqx_misc:drain_deliver([Deliver]),
|
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
|
case emqx_channel:handle_out(Delivers, ChanState) of
|
||||||
{ok, NChanState} ->
|
{ok, NChanState} ->
|
||||||
keep_state(State#state{chan_state = NChanState});
|
keep_state(State#state{chan_state = NChanState});
|
||||||
|
|
Loading…
Reference in New Issue