Skip to content

Commit 4e44d96

Browse files
committed
Fix cannot use rotate proxy with disable hackney pool
1 parent 38db483 commit 4e44d96

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/instagram/ins_web_api.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ defmodule Ins.Web.API do
169169
proxy_option = get_random_proxy()
170170
proxy = if proxy_option != nil do
171171
Logger.info "use proxy #{proxy_option}"
172-
[{:proxy, proxy_option}]
172+
# disable hackney connect pool for using rotate proxy IP
173+
[{:proxy, proxy_option}, hackney: [pool: false]]
173174
else
174175
nil
175176
end

0 commit comments

Comments
 (0)