mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 06:47:20 +08:00
feat: 优化队列实现
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user