fix: use emqx_resource macro for status
Thanks for the suggestion @thalesmg Co-authored-by: Thales Macedo Garitezi <thalesmg@gmail.com>
This commit is contained in:
parent
016fbd2c5c
commit
af3f43ffd5
|
@ -184,7 +184,7 @@ on_get_channel_status(
|
||||||
{?status_disconnected, {unhealthy_target, ?UNHEALTHY_TARGET_MSG}};
|
{?status_disconnected, {unhealthy_target, ?UNHEALTHY_TARGET_MSG}};
|
||||||
{error, _Reason} ->
|
{error, _Reason} ->
|
||||||
%% do not log error, it is logged in prepare_sql_to_conn
|
%% do not log error, it is logged in prepare_sql_to_conn
|
||||||
connecting
|
?status_connecting
|
||||||
end.
|
end.
|
||||||
|
|
||||||
on_get_channels(ResId) ->
|
on_get_channels(ResId) ->
|
||||||
|
|
Loading…
Reference in New Issue