docs: rewrite fn doc

This commit is contained in:
Thales Macedo Garitezi 2022-11-03 16:18:45 -03:00
parent f5c655ec1b
commit d3c6ade640
1 changed files with 3 additions and 3 deletions

View File

@ -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) ->