🎨 Clean code

This commit is contained in:
Daniel 2025-07-27 20:26:42 +08:00
parent 9a72ef1472
commit 0f2e044c7e
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 4 additions and 4 deletions

View file

@ -120,7 +120,7 @@ func unindex(boxID string) {
func (box *Box) Index() {
task.AppendTask(task.DatabaseIndexRef, removeBoxRefs, box.ID)
task.AppendTask(task.DatabaseIndex, index, box.ID)
task.AppendTask(task.DatabaseIndex, indexBox, box.ID)
task.AppendTask(task.DatabaseIndexRef, IndexRefs)
go func() {
sql.FlushQueue()
@ -132,7 +132,7 @@ func removeBoxRefs(boxID string) {
sql.DeleteBoxRefsQueue(boxID)
}
func index(boxID string) {
func indexBox(boxID string) {
box := Conf.Box(boxID)
if nil == box {
return