MCPcopy Index your code
hub / github.com/HelloZeroNet/ZeroNet / dbCommitCheck

Function dbCommitCheck

src/Db/Db.py:30–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28
29
30def dbCommitCheck():
31 while 1:
32 time.sleep(5)
33 for db in opened_dbs[:]:
34 if not db.need_commit:
35 continue
36
37 success = db.commit("Interval")
38 if success:
39 db.need_commit = False
40 time.sleep(0.1)
41
42
43def dbCloseAll():

Callers

nothing calls this directly

Calls 1

commitMethod · 0.80

Tested by

no test coverage detected