Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj committed Apr 23, 2021
1 parent cfc217d commit 30703e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/write.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Metadata attached to a table or column will be serialized when written
as a stream or file.
"""
function setmetadata!(x, meta::Dict{String, String})
lock(OBJ_METADATA_LOCK) do
lock(OBJ_METADATA_LOCK[]) do
OBJ_METADATA[x] = meta
end
return
Expand All @@ -45,7 +45,7 @@ Note that this function's return value directly aliases `x`'s attached metadata
this function should preserve this behavior so that downstream callers can rely
on this behavior in generic code.
"""
getmetadata(x, default=nothing) = lock(() -> get(OBJ_METADATA, x, default), OBJ_METADATA_LOCK)
getmetadata(x, default=nothing) = lock(() -> get(OBJ_METADATA, x, default), OBJ_METADATA_LOCK[])

const DEFAULT_MAX_DEPTH = 6

Expand Down

0 comments on commit 30703e6

Please sign in to comment.