mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
🎨 Improve kernel stability by eliminating some data races https://github.com/siyuan-note/siyuan/issues/9842
This commit is contained in:
parent
071f3f9af8
commit
535f72afdb
2 changed files with 23 additions and 2 deletions
|
|
@ -94,5 +94,8 @@ func pushTransactions(app, session string, transactions []*model.Transaction) {
|
|||
evt.AppId = app
|
||||
evt.SessionId = session
|
||||
evt.Data = transactions
|
||||
for _, tx := range transactions {
|
||||
tx.WaitForCommit()
|
||||
}
|
||||
util.PushEvent(evt)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue