Sfoglia il codice sorgente

:recycle: 重构定时任务实现 https://github.com/siyuan-note/siyuan/issues/7171

Liang Ding 2 anni fa
parent
commit
2e85978e05
1 ha cambiato i file con 2 aggiunte e 3 eliminazioni
  1. 2 3
      kernel/task/queue.go

+ 2 - 3
kernel/task/queue.go

@@ -27,9 +27,8 @@ import (
 )
 
 var (
-	taskQueue       []*Task
-	taskQueueStatus int
-	queueLock       = sync.Mutex{}
+	taskQueue []*Task
+	queueLock = sync.Mutex{}
 )
 
 type Task struct {