Sfoglia il codice sorgente

build(make): add xref, dialyzer command

JianBo He 5 anni fa
parent
commit
49d15d974a
3 ha cambiato i file con 11 aggiunte e 2 eliminazioni
  1. 1 0
      .gitignore
  2. 8 0
      Makefile
  3. 2 2
      apps/emqx_auth_http/src/emqx_http_client.erl

+ 1 - 0
.gitignore

@@ -35,3 +35,4 @@ Mnesia.*/
 _checkouts
 rebar.config.rendered
 /rebar3
+rebar.lock

+ 8 - 0
Makefile

@@ -19,6 +19,14 @@ ensure-rebar3:
 
 $(REBAR): ensure-rebar3
 
+.PHONY: xref
+xref:
+	$(REBAR) xref
+
+.PHONY: dialyzer
+dialyzer:
+	$(REBAR) dialyzer
+
 .PHONY: distclean
 distclean:
 	@rm -rf _build

+ 2 - 2
apps/emqx_auth_http/src/emqx_http_client.erl

@@ -191,7 +191,7 @@ handle_info(Info, State) ->
     {noreply, State}.
 
 terminate(_Reason, #state{pool = Pool, id = Id}) ->
-    gropc:disconnect_worker(Pool, {Pool, Id}),
+    gproc_pool:disconnect_worker(Pool, {Pool, Id}),
     ok.
 
 code_change(_OldVsn, State, _Extra) ->
@@ -253,4 +253,4 @@ flush_stream(Client, StreamRef) ->
             flush_stream(Client, StreamRef)
 	after 0 ->
 		ok
-	end.
+	end.