projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b221d77
)
Gun: make Gun.API a runtime dep
author
Alex Gleason
<alex@alexgleason.me>
Thu, 20 May 2021 22:23:02 +0000
(17:23 -0500)
committer
Alex Gleason
<alex@alexgleason.me>
Sat, 29 May 2021 15:53:30 +0000
(10:53 -0500)
Speed up recompilation by breaking a compile-time cycle
lib/pleroma/gun.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/gun.ex
b/lib/pleroma/gun.ex
index f9c828facf2561c4af2265d62b4ac81b1abe25d5..bef1c98722be6bcac4f7193e30bea19d5c50eac3 100644
(file)
--- 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)