Browse Source

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

Daniel 9 tháng trước cách đây
mục cha
commit
29f744c7e0
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      kernel/model/transaction.go

+ 1 - 0
kernel/model/transaction.go

@@ -57,6 +57,7 @@ func IsMoveOutlineHeading(transactions *[]*Transaction) bool {
 }
 }
 
 
 func FlushTxQueue() {
 func FlushTxQueue() {
+	time.Sleep(time.Duration(50) * time.Millisecond)
 	for 0 < len(txQueue) || isFlushing {
 	for 0 < len(txQueue) || isFlushing {
 		time.Sleep(10 * time.Millisecond)
 		time.Sleep(10 * time.Millisecond)
 	}
 	}