mirror of
https://github.com/iv-org/invidious.git
synced 2025-03-26 23:48:15 -04:00
Add sleep for decrypt_function
This commit is contained in:
parent
51158c8c45
commit
5aac0da156
@ -105,6 +105,8 @@ decrypt_function = [] of {name: String, value: Int32}
|
|||||||
spawn do
|
spawn do
|
||||||
update_decrypt_function do |function|
|
update_decrypt_function do |function|
|
||||||
decrypt_function = function
|
decrypt_function = function
|
||||||
|
sleep 1.minutes
|
||||||
|
Fiber.yield
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -118,6 +120,7 @@ before_all do |env|
|
|||||||
locale ||= "en-US"
|
locale ||= "en-US"
|
||||||
env.set "locale", locale
|
env.set "locale", locale
|
||||||
end
|
end
|
||||||
|
|
||||||
# API Endpoints
|
# API Endpoints
|
||||||
|
|
||||||
get "/api/v1/stats" do |env|
|
get "/api/v1/stats" do |env|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user