2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 06:47:20 +08:00

feat: 优化队列实现

This commit is contained in:
耗子
2024-10-12 00:58:55 +08:00
parent 3c39027120
commit 0c4d97a512
6 changed files with 82 additions and 106 deletions

View File

@@ -1,11 +1,13 @@
package bootstrap
import (
"context"
"github.com/TheTNB/panel/internal/app"
"github.com/TheTNB/panel/pkg/queue"
)
func initQueue() {
app.Queue = queue.New()
go app.Queue.Run()
app.Queue = queue.New(40)
go app.Queue.Run(context.Background())
}