Ottimizzazione init db
This commit is contained in:
+1
-1
@@ -593,7 +593,7 @@ class SqliteMultithread(Thread):
|
|||||||
while time.time() - start_time < self.timeout:
|
while time.time() - start_time < self.timeout:
|
||||||
if self._sqlitedict_thread_initialized or self.exception:
|
if self._sqlitedict_thread_initialized or self.exception:
|
||||||
return
|
return
|
||||||
time.sleep(0.1)
|
time.sleep(0.01)
|
||||||
raise TimeoutError("SqliteMultithread failed to flag initialization withing %0.0f seconds." % self.timeout)
|
raise TimeoutError("SqliteMultithread failed to flag initialization withing %0.0f seconds." % self.timeout)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user