🐛 退出应用时数据库未完全写入 https://github.com/siyuan-note/siyuan/issues/6318

This commit is contained in:
Liang Ding 2022-10-23 12:03:32 +08:00
parent 4ae5698ea6
commit db04bfa572
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
5 changed files with 27 additions and 12 deletions

View file

@ -89,3 +89,11 @@ func SetNetworkProxy(proxyURL string) {
logging.LogInfof("use network proxy [%s]", proxyURL)
}
}
const (
// FrontendQueueInterval 为前端请求队列轮询间隔。
FrontendQueueInterval = 512 * time.Millisecond
// SQLFlushInterval 为数据库事务队列写入间隔。
SQLFlushInterval = 3000 * time.Millisecond
)