mirror of
https://github.com/oarkflow/mq.git
synced 2025-10-04 07:37:05 +08:00
update: HTTP API
This commit is contained in:
@@ -10,6 +10,6 @@ import (
|
||||
|
||||
func main() {
|
||||
n := &tasks.Node6{}
|
||||
consumer1 := mq.NewConsumer("F", "queue1", n.ProcessTask, mq.WithWorkerPool(100, 4, 50000))
|
||||
consumer1 := mq.NewConsumer("F", "queue1", n.ProcessTask, mq.WithBrokerURL(":8081"), mq.WithHTTPApi(true), mq.WithWorkerPool(100, 4, 50000))
|
||||
consumer1.Consume(context.Background())
|
||||
}
|
||||
|
Reference in New Issue
Block a user