mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-29 06:55:27 +08:00
27 lines
443 B
Go
27 lines
443 B
Go
package main
|
|
|
|
import (
|
|
reader "github.com/czs007/suvlim/reader/read_node"
|
|
"sync"
|
|
)
|
|
|
|
func main() {
|
|
pulsarURL := "pulsar://localhost:6650"
|
|
|
|
numOfQueryNode := 2
|
|
|
|
go reader.StartQueryNode(pulsarURL, numOfQueryNode, 0)
|
|
reader.StartQueryNode(pulsarURL, numOfQueryNode, 1)
|
|
|
|
|
|
}
|
|
|
|
func main2() {
|
|
wg := sync.WaitGroup{}
|
|
//ctx, cancel := context.WithCancel(context.Background())
|
|
//defer cancel()
|
|
wg.Add(1)
|
|
reader.StartQueryNode2()
|
|
wg.Wait()
|
|
}
|