mirror of
https://github.com/oarkflow/mq.git
synced 2025-10-30 09:46:20 +08:00
refactor: move examples
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/oarkflow/mq"
|
||||
|
||||
"github.com/oarkflow/mq/examples/tasks"
|
||||
)
|
||||
|
||||
func main() {
|
||||
n := &tasks.Node6{}
|
||||
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