fix pusher
This commit is contained in:
parent
49d251f95f
commit
9237371034
@ -62,7 +62,10 @@ start_link() ->
|
||||
{stop, Reason :: term()} | ignore).
|
||||
init([]) ->
|
||||
Size = get_pool_size(),
|
||||
TaskPids = lists:map(fun(_) -> dimension_task:start_link() end, lists:seq(1, Size)),
|
||||
TaskPids = lists:map(fun(_) ->
|
||||
{ok, Pid} = dimension_task:start_link(),
|
||||
Pid
|
||||
end, lists:seq(1, Size)),
|
||||
lager:debug("[dimension_apn_pusher] pool_size: ~p, task_pids: ~p", [Size, TaskPids]),
|
||||
|
||||
{ok, #state{task_pids = TaskPids}}.
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
{pools, [
|
||||
%% 推送设置
|
||||
{apns_pool,
|
||||
[{size, 10}, {max_overflow, 20}, {worker_module, dimension_apn_worker}],
|
||||
[{size, 1}, {max_overflow, 2}, {worker_module, dimension_apn_worker}],
|
||||
[
|
||||
{connection_opts, [
|
||||
{apple_host, "api.sandbox.push.apple.com"},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user