We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 906ee6a commit d1c445aCopy full SHA for d1c445a
lib/bypass/instance.ex
@@ -409,17 +409,16 @@ defmodule Bypass.Instance do
409
}
410
end
411
412
- defp new_route(fun, :any, expected),
413
- do: new_route(fun, [], expected)
+ defp new_route(fun, :any, expected) do
+ new_route(fun, [], expected)
414
+ end
415
- defp new_route(fun, path, expected),
416
- do: new_route(fun, build_path_match(path) |> elem(1), expected)
+ defp new_route(fun, path, expected) do
417
+ new_route(fun, build_path_match(path) |> elem(1), expected)
418
419
420
defp cowboy_opts(port, ref, socket) do
- case Application.spec(:plug_cowboy, :vsn) do
- '1.' ++ _ -> [ref: ref, acceptors: 5, port: port, socket: socket]
421
- _ -> [ref: ref, port: port, transport_options: [num_acceptors: 5, socket: socket]]
422
- end
+ [ref: ref, port: port, transport_options: [num_acceptors: 5, socket: socket]]
423
424
425
# Use raw socket options to set SO_REUSEPORT so we fix {:error, :eaddrinuse} - where the OS errors
0 commit comments