fix(ft): comment out some clauses as "unreachable"
This commit is contained in:
parent
bef5cc9c0f
commit
11edfc1c6a
|
@ -29,9 +29,11 @@ list_exports_local() ->
|
||||||
emqx_ft_storage:with_storage_type(local, fun(Storage) ->
|
emqx_ft_storage:with_storage_type(local, fun(Storage) ->
|
||||||
case emqx_ft_storage_exporter:exporter(Storage) of
|
case emqx_ft_storage_exporter:exporter(Storage) of
|
||||||
{emqx_ft_storage_exporter_fs, Options} ->
|
{emqx_ft_storage_exporter_fs, Options} ->
|
||||||
emqx_ft_storage_exporter_fs:list_local(Options);
|
emqx_ft_storage_exporter_fs:list_local(Options)
|
||||||
InvalidExporter ->
|
% NOTE
|
||||||
{error, {invalid_exporter, InvalidExporter}}
|
% This case clause is currently deemed unreachable by dialyzer.
|
||||||
|
% InvalidExporter ->
|
||||||
|
% {error, {invalid_exporter, InvalidExporter}}
|
||||||
end
|
end
|
||||||
end).
|
end).
|
||||||
|
|
||||||
|
@ -39,8 +41,10 @@ read_export_file_local(Filepath, CallerPid) ->
|
||||||
emqx_ft_storage:with_storage_type(local, fun(Storage) ->
|
emqx_ft_storage:with_storage_type(local, fun(Storage) ->
|
||||||
case emqx_ft_storage_exporter:exporter(Storage) of
|
case emqx_ft_storage_exporter:exporter(Storage) of
|
||||||
{emqx_ft_storage_exporter_fs, Options} ->
|
{emqx_ft_storage_exporter_fs, Options} ->
|
||||||
emqx_ft_storage_exporter_fs:start_reader(Options, Filepath, CallerPid);
|
emqx_ft_storage_exporter_fs:start_reader(Options, Filepath, CallerPid)
|
||||||
InvalidExporter ->
|
% NOTE
|
||||||
{error, {invalid_exporter, InvalidExporter}}
|
% This case clause is currently deemed unreachable by dialyzer.
|
||||||
|
% InvalidExporter ->
|
||||||
|
% {error, {invalid_exporter, InvalidExporter}}
|
||||||
end
|
end
|
||||||
end).
|
end).
|
||||||
|
|
Loading…
Reference in New Issue