We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 494e635 commit 1133bcdCopy full SHA for 1133bcd
ldclient/impl/datasystem/store.py
@@ -92,6 +92,8 @@ def set_basis(self, collections: Collections):
92
Initializes the store with a full set of data, replacing any existing data.
93
"""
94
try:
95
+ self._lock.lock()
96
+
97
all_decoded = {}
98
for kind in collections:
99
collection = collections[kind]
@@ -100,7 +102,6 @@ def set_basis(self, collections: Collections):
100
102
items_decoded[key] = kind.decode(collection[key])
101
103
all_decoded[kind] = items_decoded
104
- self._lock.lock()
105
self._items.clear()
106
self._items.update(all_decoded)
107
self._initialized = True
0 commit comments