Skip to content

Commit

Permalink
KAZOO-3191 james knows it better.
Browse files Browse the repository at this point in the history
  • Loading branch information
lazedo committed Dec 12, 2014
1 parent 67a67ab commit 35bdc3b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/whistle_amqp-1.0.0/src/wh_amqp_worker.erl
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,7 @@ call_collect(Req, PubFun, UntilFun, Timeout, Worker) ->
-spec cast(api_terms(), publish_fun()) -> 'ok' | {'error', _}.
-spec cast(api_terms(), publish_fun(), pid() | atom()) -> 'ok' | {'error', _}.
cast(Req, PubFun) ->
case next_worker() of
{'error', _}=E -> E;
Worker -> cast(Req, PubFun, Worker)
end.
cast(Req, PubFun, wh_amqp_sup:pool_name()).

cast(Req, PubFun, Pool) when is_atom(Pool) ->
case next_worker(Pool) of
Expand Down

0 comments on commit 35bdc3b

Please sign in to comment.