mirror of
https://github.com/seriyps/mtproto_proxy.git
synced 2026-08-04 07:08:10 +00:00
Dead code removed
This commit is contained in:
parent
263b199848
commit
40b1d8da0a
3 changed files with 10 additions and 4 deletions
8
Makefile
8
Makefile
|
|
@ -10,6 +10,14 @@ USER:=mtproto-proxy
|
|||
all: config/prod-sys.config config/prod-vm.args
|
||||
$(REBAR3) as prod release
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
$(REBAR3) xref
|
||||
$(REBAR3) eunit
|
||||
$(REBAR3) ct
|
||||
$(REBAR3) proper -n 50
|
||||
$(REBAR3) dialyzer
|
||||
|
||||
config/prod-sys.config: config/sys.config.example
|
||||
[ -f $@ ] && diff $^ $@ || true
|
||||
cp -i -b $^ $@
|
||||
|
|
|
|||
|
|
@ -281,9 +281,7 @@ handle_upstream_data(Bin, #state{codec = Codec0} = S0) ->
|
|||
{ok, S2} ->
|
||||
{next, S2, S2#state.codec};
|
||||
{incomplete, S2} ->
|
||||
{stop, S2, S2#state.codec};
|
||||
{error, Err} ->
|
||||
error(Err)
|
||||
{stop, S2, S2#state.codec}
|
||||
end
|
||||
end, S0, Bin, Codec0),
|
||||
{ok, S#state{codec = Codec}}.
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
%% Application callbacks
|
||||
-export([start/2, prep_stop/1, stop/1, config_change/3]).
|
||||
-export([mtp_listeners/0, running_ports/0, start_proxy/1]).
|
||||
-export([mtp_listeners/0, running_ports/0, start_proxy/1, build_urls/4]).
|
||||
|
||||
-define(APP, mtproto_proxy).
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue