chore: support custom parameter in queue (#608)
* chore: support custom parameter in queue Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
@@ -37,7 +37,10 @@ func TestMain(m *testing.M) {
|
||||
}
|
||||
|
||||
w = simple.NewWorker()
|
||||
q = queue.NewQueue(w, 4)
|
||||
q, _ = queue.NewQueue(
|
||||
queue.WithWorker(w),
|
||||
queue.WithWorkerCount(4),
|
||||
)
|
||||
q.Start()
|
||||
defer func() {
|
||||
q.Shutdown()
|
||||
|
||||
Reference in New Issue
Block a user