mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-06 17:18:35 +08:00
issue: #33285 - optimize the message package - add interceptor package to achieve append operation intercepting. - add timetick interceptor to attach timetick properties for message. - add timetick background task to send timetick message. Signed-off-by: chyezh <chyezh@outlook.com>
18 lines
409 B
Go
18 lines
409 B
Go
//go:build test
|
|
// +build test
|
|
|
|
package resource
|
|
|
|
import "github.com/milvus-io/milvus/internal/streamingnode/server/resource/timestamp"
|
|
|
|
// InitForTest initializes the singleton of resources for test.
|
|
func InitForTest(opts ...optResourceInit) {
|
|
r = &resourceImpl{}
|
|
for _, opt := range opts {
|
|
opt(r)
|
|
}
|
|
if r.rootCoordClient != nil {
|
|
r.timestampAllocator = timestamp.NewAllocator(r.rootCoordClient)
|
|
}
|
|
}
|