mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🎨 Improve indexing histories queue
This commit is contained in:
parent
dad22713df
commit
812068fe60
1 changed files with 4 additions and 0 deletions
|
|
@ -130,6 +130,10 @@ func DeleteOutdatedHistories(before int64) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func IndexHistoriesQueue(histories []*History) {
|
func IndexHistoriesQueue(histories []*History) {
|
||||||
|
if 1 > len(histories) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
historyDBQueueLock.Lock()
|
historyDBQueueLock.Lock()
|
||||||
defer historyDBQueueLock.Unlock()
|
defer historyDBQueueLock.Unlock()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue