mirror of
https://github.com/oarkflow/mq.git
synced 2025-10-01 06:12:10 +08:00
15 lines
268 B
Go
15 lines
268 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/oarkflow/mq"
|
|
|
|
"github.com/oarkflow/mq/examples/tasks"
|
|
)
|
|
|
|
func main() {
|
|
consumer1 := mq.NewConsumer("F", "queue1", tasks.Node6{}.ProcessTask, mq.WithWorkerPool(100, 4, 50000))
|
|
consumer1.Consume(context.Background())
|
|
}
|