projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ObjectValidator: Clarify type of object.
[akkoma]
/
lib
/
pleroma
/
gun
/
gun.ex
diff --git
a/lib/pleroma/gun/gun.ex
b/lib/pleroma/gun/gun.ex
index 81855e89ee69ee005484436b9c3f128f89d148fb..4043e488047a0716db3fa6f1b2250e529fe30106 100644
(file)
--- a/
lib/pleroma/gun/gun.ex
+++ b/
lib/pleroma/gun/gun.ex
@@
-11,6
+11,10
@@
defmodule Pleroma.Gun do
@callback await(pid(), reference()) :: {:response, :fin, 200, []}
@callback set_owner(pid(), pid()) :: :ok
@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
+
def open(host, port, opts), do: api().open(host, port, opts)
def info(pid), do: api().info(pid)
def open(host, port, opts), do: api().open(host, port, opts)
def info(pid), do: api().info(pid)
@@
-24,6
+28,4
@@
defmodule Pleroma.Gun do
def await(pid, ref), do: api().await(pid, ref)
def set_owner(pid, owner), do: api().set_owner(pid, owner)
def await(pid, ref), do: api().await(pid, ref)
def set_owner(pid, owner), do: api().set_owner(pid, owner)
-
- defp api, do: Pleroma.Config.get([Pleroma.Gun], Pleroma.Gun.API)
end
end