🎨 Improve indexing histories queue

This commit is contained in:
Daniel 2025-01-04 22:07:50 +08:00
parent dad22713df
commit 812068fe60
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -130,6 +130,10 @@ func DeleteOutdatedHistories(before int64) {
}
func IndexHistoriesQueue(histories []*History) {
if 1 > len(histories) {
return
}
historyDBQueueLock.Lock()
defer historyDBQueueLock.Unlock()