Document technical debt

fixing-build-test
dgtlmoon 7 months ago
parent e2a8a847bc
commit 3b514d5a74

@ -330,6 +330,10 @@ class model(dict):
self.ensure_data_dir_exists() self.ensure_data_dir_exists()
# Because our history.txt is very primitive, we cant have repeating timestamps, so add a delay here.
# @todo something smarter
time.sleep(1)
# Small hack so that we sleep just enough to allow 1 second between history snapshots # Small hack so that we sleep just enough to allow 1 second between history snapshots
# this is because history.txt indexes/keys snapshots by epoch seconds and we dont want dupe keys # this is because history.txt indexes/keys snapshots by epoch seconds and we dont want dupe keys
if self.__newest_history_key and int(timestamp) == int(self.__newest_history_key): if self.__newest_history_key and int(timestamp) == int(self.__newest_history_key):

Loading…
Cancel
Save