Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:recycle: Improve transaction flush https://github.com/siyuan-note/siyuan/issues/12896

Daniel29f744c7e047
diff --git a/kernel/model/transaction.go b/kernel/model/transaction.go
index 08af365650..25391f2623 100644
--- a/kernel/model/transaction.go
+++ b/kernel/model/transaction.go
@@ -57,6 +57,7 @@ func IsMoveOutlineHeading(transactions *[]*Transaction) bool {
}
func FlushTxQueue() {
+ time.Sleep(time.Duration(50) * time.Millisecond)
for 0 < len(txQueue) || isFlushing {
time.Sleep(10 * time.Millisecond)
}