docs: rewrite fn doc
This commit is contained in:
parent
f5c655ec1b
commit
d3c6ade640
|
@ -42,9 +42,9 @@ init([]) ->
|
||||||
ChildSpecs = [],
|
ChildSpecs = [],
|
||||||
{ok, {SupFlags, ChildSpecs}}.
|
{ok, {SupFlags, ChildSpecs}}.
|
||||||
|
|
||||||
%% @doc Starts a new JWT worker. The worker will send the caller a
|
%% @doc Starts a new JWT worker. The caller should use
|
||||||
%% message when it creates and stores its first JWT, or if it fails to
|
%% `emqx_rule_engine_jwt_sup:ensure_jwt/1' to ensure that a JWT has
|
||||||
%% do so, using a generated reference.
|
%% been stored, if synchronization is needed.
|
||||||
-spec ensure_worker_present(worker_id(), map()) ->
|
-spec ensure_worker_present(worker_id(), map()) ->
|
||||||
{ok, supervisor:child()}.
|
{ok, supervisor:child()}.
|
||||||
ensure_worker_present(Id, Config) ->
|
ensure_worker_present(Id, Config) ->
|
||||||
|
|
Loading…
Reference in New Issue