Bump supported Crystal version

This commit is contained in:
Omar Roth 2019-09-30 15:35:38 -04:00
parent eef66de68c
commit da07f99d3d
No known key found for this signature in database
GPG Key ID: B8254FB7EC3D37F2
2 changed files with 1 additions and 14 deletions

View File

@ -19,6 +19,6 @@ dependencies:
github: kemalcr/kemal
version: ~> 0.26.0
crystal: 0.31.0
crystal: 0.31.1
license: AGPLv3

View File

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