Fix pick fail
This commit is contained in:
parent
3df8de2419
commit
f54d414825
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue