fix(resource): change how buffer workers are started

This commit is contained in:
Thales Macedo Garitezi 2023-10-09 14:47:18 -03:00
parent 902b1d6ec5
commit d6781efee2
1 changed files with 2 additions and 2 deletions

View File

@ -147,9 +147,9 @@ create(ResId, Group, ResourceType, Config, Opts) ->
QueryMode = emqx_resource:query_mode(ResourceType, Config, Opts),
case QueryMode of
%% the resource has built-in buffer, so there is no need for resource workers
simple_sync ->
simple_sync_internal_buffer ->
ok;
simple_async ->
simple_async_internal_buffer ->
ok;
%% The resource is a consumer resource, so there is no need for resource workers
no_queries ->