Przeglądaj źródła

fix(emqx_resource): fix dialyzer warning

EMQ-YangM 3 lat temu
rodzic
commit
6b662d87ba
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      apps/emqx_resource/src/emqx_resource.erl

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

@@ -265,7 +265,7 @@ call_start(InstId, Mod, Config) ->
     ?SAFE_CALL(Mod:on_start(InstId, Config)).
     ?SAFE_CALL(Mod:on_start(InstId, Config)).
 
 
 -spec call_health_check(instance_id(), module(), resource_state()) ->
 -spec call_health_check(instance_id(), module(), resource_state()) ->
-    {ok, resource_state()} | {error, Reason:: term(), resource_state()}.
+     {ok, resource_state()} | {error, Reason:: term()}  | {error, Reason:: term(), resource_state()}.
 call_health_check(InstId, Mod, ResourceState) ->
 call_health_check(InstId, Mod, ResourceState) ->
     ?SAFE_CALL(Mod:on_health_check(InstId, ResourceState)).
     ?SAFE_CALL(Mod:on_health_check(InstId, ResourceState)).