浏览代码

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

Liang Ding 2 年之前
父节点
当前提交
2e85978e05
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      kernel/task/queue.go

+ 2 - 3
kernel/task/queue.go

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