mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-05 02:12:48 +08:00
issue: #38399 We want to support broadcast operation for both streaming and msgstream. But msgstream can be only sent message from rootcoord and proxy. So this pr move the streamingcoord to rootcoord to make easier implementation. --------- Signed-off-by: chyezh <chyezh@outlook.com>
27 lines
592 B
Go
27 lines
592 B
Go
//go:build test
|
|
// +build test
|
|
|
|
package resource
|
|
|
|
import (
|
|
"github.com/milvus-io/milvus/internal/streamingnode/client/manager"
|
|
"github.com/milvus-io/milvus/pkg/log"
|
|
)
|
|
|
|
// OptStreamingManagerClient provides streaming manager client to the resource.
|
|
func OptStreamingManagerClient(c manager.ManagerClient) optResourceInit {
|
|
return func(r *resourceImpl) {
|
|
r.streamingNodeManagerClient = c
|
|
}
|
|
}
|
|
|
|
// InitForTest initializes the singleton of resources for test.
|
|
func InitForTest(opts ...optResourceInit) {
|
|
r = &resourceImpl{
|
|
logger: log.With(),
|
|
}
|
|
for _, opt := range opts {
|
|
opt(r)
|
|
}
|
|
}
|