mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-03 12:29:36 +08:00
39addf0a55
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
23 lines
335 B
Go
23 lines
335 B
Go
package reader
|
|
|
|
import (
|
|
"fmt"
|
|
"sync"
|
|
"time"
|
|
)
|
|
|
|
func startQueryNode() {
|
|
qn := NewQueryNode(0, 0)
|
|
qn.InitQueryNodeCollection()
|
|
go qn.SegmentService()
|
|
qn.StartMessageClient()
|
|
|
|
var wg sync.WaitGroup
|
|
for {
|
|
time.Sleep(200 * time.Millisecond)
|
|
qn.PrepareBatchMsg()
|
|
qn.doQueryNode(&wg)
|
|
fmt.Println("do a batch in 200ms")
|
|
}
|
|
}
|