Commit 32e1dc91 authored by Sergey Prokhorov's avatar Sergey Prokhorov

Remove internal dbg macroses

parent c0420204
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
-define(MAX_PACKET_SIZE, 1 * 1024 * 1024). % 1mb -define(MAX_PACKET_SIZE, 1 * 1024 * 1024). % 1mb
-define(APP, mtproto_proxy). -define(APP, mtproto_proxy).
-define(MAX_SIZE, 16#80000000). -define(MAX_SIZE, 16#80000000).
-include("dbg.hrl").
-opaque codec() :: #int_st{}. -opaque codec() :: #int_st{}.
...@@ -49,7 +48,6 @@ try_decode_packet(Bin, #int_st{buffer = <<>>} = St) -> ...@@ -49,7 +48,6 @@ try_decode_packet(Bin, #int_st{buffer = <<>>} = St) ->
try_decode_packet_len(Len, Data, St) -> try_decode_packet_len(Len, Data, St) ->
case Data of case Data of
<<_:4/binary, Packet:Len/binary, Rest/binary>> -> <<_:4/binary, Packet:Len/binary, Rest/binary>> ->
?DBG("len=~p ~w -> ~w", [Len, Data, Packet]),
{ok, Packet, St#int_st{buffer = Rest}}; {ok, Packet, St#int_st{buffer = Rest}};
_ -> _ ->
{incomplete, St#int_st{buffer = Data}} {incomplete, St#int_st{buffer = Data}}
...@@ -59,5 +57,4 @@ try_decode_packet_len(Len, Data, St) -> ...@@ -59,5 +57,4 @@ try_decode_packet_len(Len, Data, St) ->
encode_packet(Data, St) -> encode_packet(Data, St) ->
Size = iolist_size(Data), Size = iolist_size(Data),
Packet = [<<Size:32/little>> | Data], Packet = [<<Size:32/little>> | Data],
?DBG("~w -> ~w", [iolist_to_binary(Data), iolist_to_binary(Packet)]),
{Packet, St}. {Packet, St}.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment