mirror of
https://github.com/seriyps/mtproto_proxy.git
synced 2026-05-13 08:46:46 +00:00
Fix deprecated code:lib_dir/2 warning in mtp_test_datacenter
Replace code:lib_dir(mtproto_proxy, test) with filename:join(code:lib_dir(mtproto_proxy), "test") as the two-argument form is deprecated since OTP 27. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
dfe8ebf034
commit
2dd6e6d589
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ middle_connections(#{srv_ids := Ids}) ->
|
|||
%% Api
|
||||
start_config_server(Ip, Port, Secret, DcConfig, Acc) ->
|
||||
application:load(mtproto_proxy),
|
||||
RootDir = code:lib_dir(mtproto_proxy, test),
|
||||
RootDir = filename:join(code:lib_dir(mtproto_proxy), "test"),
|
||||
{ok, Pid} =
|
||||
inets:start(httpd,
|
||||
[{port, Port},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue