mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-11-04 06:08:31 -06: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
 | 
			
		||||
  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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user