Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
45ab24f2
Verified
Commit
45ab24f2
authored
Jun 08, 2021
by
Alex Gleason
Browse files
Switch to runtime deps in Pleroma.Instances
Speeds up recompilation by limiting compile cycles
parent
d896e45f
Pipeline
#36504
passed with stages
in 6 minutes and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/instances.ex
View file @
45ab24f2
...
...
@@ -5,13 +5,18 @@
defmodule
Pleroma
.
Instances
do
@moduledoc
"Instances context."
@adapter
Pleroma
.
Instances
.
Instance
alias
Pleroma
.
Instances
.
Instance
defdelegate
filter_reachable
(
urls_or_hosts
),
to:
@adapter
defdelegate
reachable?
(
url_or_host
),
to:
@adapter
defdelegate
set_reachable
(
url_or_host
),
to:
@adapter
defdelegate
set_unreachable
(
url_or_host
,
unreachable_since
\\
nil
),
to:
@adapter
defdelegate
get_consistently_unreachable
(),
to:
@adapter
def
filter_reachable
(
urls_or_hosts
),
do
:
Instance
.
filter_reachable
(
urls_or_hosts
)
def
reachable?
(
url_or_host
),
do
:
Instance
.
reachable?
(
url_or_host
)
def
set_reachable
(
url_or_host
),
do
:
Instance
.
set_reachable
(
url_or_host
)
def
set_unreachable
(
url_or_host
,
unreachable_since
\\
nil
),
do
:
Instance
.
set_unreachable
(
url_or_host
,
unreachable_since
)
def
get_consistently_unreachable
,
do
:
Instance
.
get_consistently_unreachable
()
def
set_consistently_unreachable
(
url_or_host
),
do
:
set_unreachable
(
url_or_host
,
reachability_datetime_threshold
())
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment