Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added 'strategy' to pool configartion options. #15

Merged
merged 10 commits into from
May 17, 2019
Prev Previous commit
Updated as per Peter's comment.
  • Loading branch information
MouseRider committed May 7, 2019
commit b1fe663a9a8af85b81e32926f8148a1e24822a75
8 changes: 1 addition & 7 deletions lib/machine_gun.ex
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,7 @@ defmodule MachineGun do
size = pool_opts |> Map.get(:pool_size, @default_pool_size)
max_overflow = pool_opts |> Map.get(:pool_max_overflow, @default_pool_max_overflow)
strategy = pool_opts |> Map.get(:pool_strategy, @default_pool_strategy)
conn_opts =
opts
|> Map.get(
:conn_opts,
pool_opts
|> Map.get(:conn_opts, %{})
)
conn_opts = pool_opts |> Map.get(:conn_opts, %{})

conn_opts =
%{
Expand Down