mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-10-31 12:42:09 +00:00 
			
		
		
		
	Bump supported Crystal version
This commit is contained in:
		| @@ -19,6 +19,6 @@ dependencies: | ||||
|     github: kemalcr/kemal | ||||
|     version: ~> 0.26.0 | ||||
|  | ||||
| crystal: 0.31.0 | ||||
| crystal: 0.31.1 | ||||
|  | ||||
| license: AGPLv3 | ||||
|   | ||||
| @@ -237,16 +237,3 @@ class HTTP::Client | ||||
|     response | ||||
|   end | ||||
| end | ||||
|  | ||||
| struct Crystal::ThreadLocalValue(T) | ||||
|   @values = Hash(Thread, T).new | ||||
|  | ||||
|   def get(&block : -> T) | ||||
|     th = Thread.current | ||||
|     if !@values[th]? | ||||
|       @values[th] = yield | ||||
|     else | ||||
|       @values[th] | ||||
|     end | ||||
|   end | ||||
| end | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Omar Roth
					Omar Roth