Fix pick fail

This commit is contained in:
turtled 2018-12-15 13:31:38 +08:00 committed by turtleDeng
parent 3df8de2419
commit f54d414825
2 changed files with 2 additions and 2 deletions

View File

@ -371,7 +371,7 @@ cast(Broker, Msg) ->
%% Pick a broker
pick(Topic) ->
gproc_pool:pick_worker(broker, Topic).
gproc_pool:pick_worker(emqx_broker_pool, Topic).
%%------------------------------------------------------------------------------
%% gen_server callbacks

View File

@ -148,7 +148,7 @@ call(Router, Msg) ->
gen_server:call(Router, Msg, infinity).
pick(Topic) ->
gproc_pool:pick_worker(router, Topic).
gproc_pool:pick_worker(emqx_router_pool, Topic).
%%------------------------------------------------------------------------------
%% gen_server callbacks