Просмотр исходного кода

fix: use emqx_resource macro for status

Thanks for the suggestion @thalesmg

Co-authored-by: Thales Macedo Garitezi <thalesmg@gmail.com>

Kjell Winblad 2 лет назад
Родитель
Сommit
af3f43ffd5
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      apps/emqx_oracle/src/emqx_oracle.erl

+ 1 - 1
apps/emqx_oracle/src/emqx_oracle.erl

@@ -184,7 +184,7 @@ on_get_channel_status(
             {?status_disconnected, {unhealthy_target, ?UNHEALTHY_TARGET_MSG}};
         {error, _Reason} ->
             %% do not log error, it is logged in prepare_sql_to_conn
-            connecting
+            ?status_connecting
     end.
 
 on_get_channels(ResId) ->