Explorar el Código

fix(DynamoDB connector): fix error in status check when no workers

Kjell Winblad hace 2 años
padre
commit
c90f4f5794
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      apps/emqx_bridge_dynamo/src/emqx_bridge_dynamo_connector.erl

+ 1 - 1
apps/emqx_bridge_dynamo/src/emqx_bridge_dynamo_connector.erl

@@ -193,7 +193,7 @@ on_get_status(_InstanceId, #{pool_name := Pool} = State) ->
     case Health of
         {error, timeout} ->
             {?status_connecting, State, <<"timeout_while_checking_connection">>};
-        {ok, [_ | _] = Results} ->
+        {ok, Results} ->
             status_result(Results, State)
     end.