Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2026-02-01 22:12:38 +08:00
commit de9bc5182c

View file

@ -95,6 +95,9 @@ func ClearQueue() {
var flushingTx = atomic.Bool{}
func FlushQueue() {
initDatabaseLock.Lock()
defer initDatabaseLock.Unlock()
ops := getOperations()
total := len(ops)
if 1 > total && !flushingTx.Load() {