From 02d21e01adaec142c5026d10f445074ac34b83cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C5=A1a=20Juri=C4=87?= Date: Fri, 22 Mar 2024 16:01:20 +0100 Subject: [PATCH] Improve naming --- lib/site_encrypt/phoenix/endpoint.ex | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/site_encrypt/phoenix/endpoint.ex b/lib/site_encrypt/phoenix/endpoint.ex index 2762d8e..e8d609f 100644 --- a/lib/site_encrypt/phoenix/endpoint.ex +++ b/lib/site_encrypt/phoenix/endpoint.ex @@ -26,10 +26,10 @@ defmodule SiteEncrypt.Phoenix.Endpoint do end @doc false - defmacro __using__(static_opts) do - quote bind_quoted: [static_opts: static_opts] do - {endpoint_opts, static_opts} = Keyword.split(static_opts, [:otp_app]) - use Phoenix.Endpoint, endpoint_opts + defmacro __using__(opts) do + quote bind_quoted: [opts: opts] do + {phoenix_using_opts, using_opts} = Keyword.split(opts, [:otp_app]) + use Phoenix.Endpoint, phoenix_using_opts @behaviour SiteEncrypt require SiteEncrypt @@ -50,7 +50,7 @@ defmodule SiteEncrypt.Phoenix.Endpoint do Supervisor.child_spec( { SiteEncrypt.Phoenix.Endpoint, - unquote(static_opts) + unquote(using_opts) |> Config.Reader.merge(opts) |> Keyword.put(:endpoint, __MODULE__) },