diff options
| author | Alex Gleason <alex@alexgleason.me> | 2021-05-20 17:23:02 -0500 | 
|---|---|---|
| committer | Alex Gleason <alex@alexgleason.me> | 2021-05-29 10:53:30 -0500 | 
| commit | 3ebede4b514a69b41b34a0fe8e8fc27ce94a2071 (patch) | |
| tree | 7f6a7011df4b38605e8cf5c90b06f8b76745c61a | |
| parent | b221d77a6da07c684bdbc63ddf4500e0d7ffeae8 (diff) | |
| download | pleroma-3ebede4b514a69b41b34a0fe8e8fc27ce94a2071.tar.gz pleroma-3ebede4b514a69b41b34a0fe8e8fc27ce94a2071.zip  | |
Gun: make Gun.API a runtime dep
Speed up recompilation by breaking a compile-time cycle
| -rw-r--r-- | lib/pleroma/gun.ex | 4 | 
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/pleroma/gun.ex b/lib/pleroma/gun.ex index f9c828fac..bef1c9872 100644 --- a/lib/pleroma/gun.ex +++ b/lib/pleroma/gun.ex @@ -11,9 +11,7 @@ defmodule Pleroma.Gun do    @callback await(pid(), reference()) :: {:response, :fin, 200, []}    @callback set_owner(pid(), pid()) :: :ok -  @api Pleroma.Config.get([Pleroma.Gun], Pleroma.Gun.API) - -  defp api, do: @api +  defp api, do: Pleroma.Config.get([Pleroma.Gun], Pleroma.Gun.API)    def open(host, port, opts), do: api().open(host, port, opts)  | 
