This commit is contained in:
anlicheng 2025-05-20 15:23:27 +08:00
parent afaccd9330
commit e7d8f3a5eb

View File

@ -90,7 +90,7 @@ send_event(EventType, Params) when is_integer(EventType), is_binary(Params) ->
-spec(start_link(ServiceId :: binary(), Host :: string(), Port :: integer()) ->
{ok, Pid :: pid()} | ignore | {error, Reason :: term()}).
start_link(ServiceId, Host, Port) when is_binary(ServiceId), is_list(Host), is_integer(Port) ->
gen_server:start_link(?MODULE, [ServiceId, Host, Port], []).
gen_server:start_link({local, ?MODULE}, ?MODULE, [ServiceId, Host, Port], []).
%%%===================================================================
%%% gen_server callbacks