fix network
This commit is contained in:
parent
e12424f4cf
commit
eb9db0620c
@ -21,7 +21,6 @@
|
||||
-export([get_name/1, get_pid/1, lookup_pid/1, peer_info/3, unregister/3, debug_info/1, get_network_id/1, attach/6, arp_request/2]).
|
||||
-export([forward_by_ets/5, update_hole/7, disable_client/2, get_channel/2]).
|
||||
-export([command/4, wait_command_ack/2]).
|
||||
-export([test_event/1]).
|
||||
|
||||
%% gen_server callbacks
|
||||
-export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]).
|
||||
@ -69,10 +68,6 @@
|
||||
%%% API
|
||||
%%%===================================================================
|
||||
|
||||
%% -- MARK: 测试函数
|
||||
test_event(Pid) ->
|
||||
gen_server:cast(Pid, test_event).
|
||||
|
||||
-spec get_pid(Id :: integer()) -> undefined | pid().
|
||||
get_pid(Id) when is_integer(Id) ->
|
||||
whereis(get_name(Id)).
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user