where were you when lint fail
This commit is contained in:
parent
9671cdecdf
commit
010e8c7bb2
1 changed files with 8 additions and 2 deletions
|
@ -15,7 +15,10 @@ defmodule Pleroma.HTTP.Backoff do
|
||||||
|
|
||||||
case Enum.find_value(headers, fn {"x-ratelimit-reset", value} -> value end) do
|
case Enum.find_value(headers, fn {"x-ratelimit-reset", value} -> value end) do
|
||||||
nil ->
|
nil ->
|
||||||
Logger.error("Rate limited, but couldn't find timestamp! Using default 5 minute backoff until #{default_5_minute_backoff}")
|
Logger.error(
|
||||||
|
"Rate limited, but couldn't find timestamp! Using default 5 minute backoff until #{default_5_minute_backoff}"
|
||||||
|
)
|
||||||
|
|
||||||
default_5_minute_backoff
|
default_5_minute_backoff
|
||||||
|
|
||||||
value ->
|
value ->
|
||||||
|
@ -24,7 +27,10 @@ defmodule Pleroma.HTTP.Backoff do
|
||||||
stamp
|
stamp
|
||||||
else
|
else
|
||||||
_ ->
|
_ ->
|
||||||
Logger.error("Rate limited, but couldn't parse timestamp! Using default 5 minute backoff until #{default_5_minute_backoff}")
|
Logger.error(
|
||||||
|
"Rate limited, but couldn't parse timestamp! Using default 5 minute backoff until #{default_5_minute_backoff}"
|
||||||
|
)
|
||||||
|
|
||||||
default_5_minute_backoff
|
default_5_minute_backoff
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue