Add sleep for decrypt_function

This commit is contained in:
Omar Roth 2019-03-03 23:31:39 -06:00
parent 51158c8c45
commit 5aac0da156

View File

@ -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|