name
This commit is contained in:
parent
deaf220343
commit
4825591565
|
@ -107,7 +107,10 @@ mnesia(copy) ->
|
||||||
Id :: pos_integer(),
|
Id :: pos_integer(),
|
||||||
Opts :: list().
|
Opts :: list().
|
||||||
start_link(Id, Opts) ->
|
start_link(Id, Opts) ->
|
||||||
gen_server2:start_link(?MODULE, [Id, Opts], []).
|
gen_server2:start_link({local, name(Id)}, ?MODULE, [Id, Opts], []).
|
||||||
|
|
||||||
|
name(Id) ->
|
||||||
|
list_to_atom("emqttd_pubsub_" ++ integer_to_list(Id)).
|
||||||
|
|
||||||
%%------------------------------------------------------------------------------
|
%%------------------------------------------------------------------------------
|
||||||
%% @doc Create topic. Notice That this transaction is not protected by pubsub pool
|
%% @doc Create topic. Notice That this transaction is not protected by pubsub pool
|
||||||
|
|
Loading…
Reference in New Issue