Преглед изворни кода

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

Kjell Winblad пре 2 година
родитељ
комит
c90f4f5794
1 измењених фајлова са 1 додато и 1 уклоњено
  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.