chore(queue): support option setting (#593)

This commit is contained in:
Bo-Yi Wu
2021-07-17 06:56:42 +08:00
committed by GitHub
parent 41c61f11c4
commit 4349a17017
3 changed files with 25 additions and 6 deletions

View File

@@ -46,7 +46,7 @@ func TestMain(m *testing.M) {
log.Fatal(err)
}
w = simple.NewWorker(int(cfg.Core.QueueNum))
w = simple.NewWorker()
q = queue.NewQueue(w, 4)
q.Start()
defer func() {