mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 06:47:20 +08:00
refactor: 初步实现依赖注入
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user