Skip to content

Commit 8f2f331

Browse files
author
Pablo Lopez
committed
Add gun_opts to conf
1 parent ba43078 commit 8f2f331

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/kinetic.erl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,13 +310,15 @@ get_value(Key, TupleList) ->
310310

311311
start_pool() ->
312312
PoolSize = application:get_env(?MODULE, pool_size, 100),
313+
GunOpts = application:get_env(?MODULE, gun_opts, []),
313314
lists:foreach(fun(Region) ->
314315
PoolName = kinetic_utils:pool_name(Region),
315316
Endpoint = kinetic_utils:endpoint(Region),
316317
ehttpc_sup:start_pool(PoolName,
317318
[{host, Endpoint},
318319
{port, 443},
319320
{pool_size, PoolSize},
320-
{enable_pipelining, true}])
321+
{enable_pipelining, true},
322+
{gun_opts, GunOpts}])
321323
end,
322324
kinetic_utils:regions()).

0 commit comments

Comments
 (0)