mirror of
https://github.com/iv-org/invidious.git
synced 2025-07-10 16:39:38 -04:00
Add sleep for decrypt_function
This commit is contained in:
parent
51158c8c45
commit
5aac0da156
1 changed files with 3 additions and 0 deletions
|
@ -105,6 +105,8 @@ decrypt_function = [] of {name: String, value: Int32}
|
|||
spawn do
|
||||
update_decrypt_function do |function|
|
||||
decrypt_function = function
|
||||
sleep 1.minutes
|
||||
Fiber.yield
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -118,6 +120,7 @@ before_all do |env|
|
|||
locale ||= "en-US"
|
||||
env.set "locale", locale
|
||||
end
|
||||
|
||||
# API Endpoints
|
||||
|
||||
get "/api/v1/stats" do |env|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue