mirror of
https://github.com/seriyps/mtproto_proxy.git
synced 2026-08-04 15:19:47 +00:00
Remove internal dbg macroses
This commit is contained in:
parent
c04202045e
commit
32e1dc91a6
1 changed files with 0 additions and 3 deletions
|
|
@ -19,7 +19,6 @@
|
|||
-define(MAX_PACKET_SIZE, 1 * 1024 * 1024). % 1mb
|
||||
-define(APP, mtproto_proxy).
|
||||
-define(MAX_SIZE, 16#80000000).
|
||||
-include("dbg.hrl").
|
||||
|
||||
-opaque codec() :: #int_st{}.
|
||||
|
||||
|
|
@ -49,7 +48,6 @@ try_decode_packet(Bin, #int_st{buffer = <<>>} = St) ->
|
|||
try_decode_packet_len(Len, Data, St) ->
|
||||
case Data of
|
||||
<<_:4/binary, Packet:Len/binary, Rest/binary>> ->
|
||||
?DBG("len=~p ~w -> ~w", [Len, Data, Packet]),
|
||||
{ok, Packet, St#int_st{buffer = Rest}};
|
||||
_ ->
|
||||
{incomplete, St#int_st{buffer = Data}}
|
||||
|
|
@ -59,5 +57,4 @@ try_decode_packet_len(Len, Data, St) ->
|
|||
encode_packet(Data, St) ->
|
||||
Size = iolist_size(Data),
|
||||
Packet = [<<Size:32/little>> | Data],
|
||||
?DBG("~w -> ~w", [iolist_to_binary(Data), iolist_to_binary(Packet)]),
|
||||
{Packet, St}.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue