Skip to content

Commit

Permalink
Merge pull request #233 from kianmeng/fix-typos-again
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
sneako authored Jul 6, 2023
2 parents 143d67d + 5e4d7dc commit 53e4034
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/finch/http1/pool.ex
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ defmodule Finch.HTTP1.Pool do
worker: {__MODULE__, {registry_name, shp, conn_opts}},
pool_size: pool_size,
lazy: true,
worker_idle_timeout: pool_idle_timout(pool_max_idle_time)
worker_idle_timeout: pool_idle_timeout(pool_max_idle_time)
)
end

Expand Down Expand Up @@ -231,6 +231,6 @@ defmodule Finch.HTTP1.Pool do
defp restart_option(:infinity), do: :permanent
defp restart_option(_pool_max_idle_time), do: :transient

defp pool_idle_timout(:infinity), do: nil
defp pool_idle_timout(pool_max_idle_time), do: pool_max_idle_time
defp pool_idle_timeout(:infinity), do: nil
defp pool_idle_timeout(pool_max_idle_time), do: pool_max_idle_time
end
2 changes: 1 addition & 1 deletion test/finch/http1/pool_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ defmodule Finch.HTTP1.PoolTest do
test_name = to_string(finch_name)
parent = self()

handler = fn event, _measurments, meta, _config ->
handler = fn event, _measurements, meta, _config ->
assert event == [:finch, :pool_max_idle_time_exceeded]
assert is_atom(meta.scheme)
assert is_binary(meta.host)
Expand Down

0 comments on commit 53e4034

Please sign in to comment.