Procházet zdrojové kódy

fix: use emqx_resource macro for status

Thanks for the suggestion @thalesmg

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

Kjell Winblad před 2 roky
rodič
revize
af3f43ffd5
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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}};
             {?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) ->