Skip to content

Commit

Permalink
fixup! Validate a naive cache fails test
Browse files Browse the repository at this point in the history
  • Loading branch information
omus committed Jul 9, 2022
1 parent 92b1ebe commit 005380e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tzdata/compile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -697,10 +697,10 @@ function compile(tz_source::TZSource, dest_dir::AbstractString; kwargs...)
# TimeZone objects, so that newly constructed objects pick up the newly compiled rules.
# Since we use thread-local caches, we spawn a task on _each thread_ to clear that
# thread's local cache.
Threads.@threads :static for i in 1:Threads.nthreads()
@assert Threads.threadid() === i "TimeZones.TZData.compile() must be called from the main, top-level Task."
# Threads.@threads :static for i in 1:Threads.nthreads()
# @assert Threads.threadid() === i "TimeZones.TZData.compile() must be called from the main, top-level Task."
empty!(_tz_cache())
end
# end

for (tz, class) in results
parts = split(TimeZones.name(tz), '/')
Expand Down

0 comments on commit 005380e

Please sign in to comment.