Skip to content

Commit b9a00d7

Browse files
fix: incorrect usage of lock file
1 parent b0a24b4 commit b9a00d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mapbuffer/mapbuffer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def __init__(
6262
self._compress = None
6363
self._lock = None
6464
if self.index_cache is not None:
65-
self._lock = fasteners.InterProcessReaderWriterLock(self.index_cache)
65+
self._lock = fasteners.InterProcessReaderWriterLock(f"{self.index_cache}.lock")
6666

6767
if isinstance(data, dict):
6868
self.buffer = self.dict2buf(data, compress)

0 commit comments

Comments
 (0)