mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-01 19:06:10 -04:00
Bump supported Crystal version
This commit is contained in:
parent
eef66de68c
commit
da07f99d3d
2 changed files with 1 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue