mirror of https://github.com/milvus-io/milvus.git
Add positionProvider implementation assertion (#9261)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/9286/head
parent
cbbdbc699c
commit
768535f31c
|
@ -25,6 +25,8 @@ type positionProvider interface {
|
|||
GetVChanPositions(vchans []vchannel, seekFromStartPosition bool) ([]*datapb.VchannelInfo, error)
|
||||
}
|
||||
|
||||
var _ positionProvider = (*dummyPosProvider)(nil)
|
||||
|
||||
type dummyPosProvider struct{}
|
||||
|
||||
//GetVChanPositions implements positionProvider
|
||||
|
|
|
@ -79,6 +79,9 @@ type RootCoordCreatorFunc func(ctx context.Context, metaRootPath string, etcdEnd
|
|||
// makes sure Server implements `DataCoord`
|
||||
var _ types.DataCoord = (*Server)(nil)
|
||||
|
||||
// makes sure Server implements `positionProvider`
|
||||
var _ positionProvider = (*Server)(nil)
|
||||
|
||||
// Server implements `types.Datacoord`
|
||||
// handles Data Cooridinator related jobs
|
||||
type Server struct {
|
||||
|
|
Loading…
Reference in New Issue