fix(emqx_retainer): fix function 'create_resource'

This commit is contained in:
EMQ-YangM 2022-02-11 18:29:13 +08:00
parent fae91d72f2
commit 79badcb403
1 changed files with 1 additions and 0 deletions

View File

@ -480,6 +480,7 @@ create_resource(Context, #{type := DB} = Config) ->
ResourceID = erlang:iolist_to_binary([io_lib:format("~ts_~ts", [?APP, DB])]), ResourceID = erlang:iolist_to_binary([io_lib:format("~ts_~ts", [?APP, DB])]),
case emqx_resource:create( case emqx_resource:create(
ResourceID, ResourceID,
<<"default">>,
list_to_existing_atom(io_lib:format("~ts_~ts", [emqx_connector, DB])), list_to_existing_atom(io_lib:format("~ts_~ts", [emqx_connector, DB])),
Config) of Config) of
{ok, already_created} -> {ok, already_created} ->