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

refactor: 初步实现依赖注入

This commit is contained in:
耗子
2024-12-15 23:01:17 +08:00
parent 24af7bab5f
commit cd1d7c9757
95 changed files with 1837 additions and 1366 deletions

View File

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