@@ -15,7 +15,7 @@ import (
1515 "golang.org/x/sync/semaphore"
1616 "google.golang.org/protobuf/proto"
1717
18- "github.com/zilliztech/milvus-backup/core/client"
18+ "github.com/zilliztech/milvus-backup/core/client/milvus "
1919 "github.com/zilliztech/milvus-backup/core/meta"
2020 "github.com/zilliztech/milvus-backup/core/pbconv"
2121 "github.com/zilliztech/milvus-backup/core/proto/backuppb"
@@ -44,8 +44,8 @@ type CollectionOpt struct {
4444
4545 Meta * meta.MetaManager
4646
47- Grpc client .Grpc
48- Restful client .Restful
47+ Grpc milvus .Grpc
48+ Restful milvus .Restful
4949}
5050
5151type CollectionTask struct {
@@ -70,8 +70,8 @@ type CollectionTask struct {
7070
7171 meta * meta.MetaManager
7272
73- grpc client .Grpc
74- restful client .Restful
73+ grpc milvus .Grpc
74+ restful milvus .Restful
7575
7676 logger * zap.Logger
7777}
@@ -419,7 +419,7 @@ func (ct *CollectionTask) getSegment(ctx context.Context, seg *milvuspb.Persiste
419419 return bakSeg , nil
420420}
421421
422- func (ct * CollectionTask ) listInsertLogByAPI (ctx context.Context , binlogDir string , fieldsBinlog []client .BinlogInfo ) ([]* backuppb.FieldBinlog , int64 , error ) {
422+ func (ct * CollectionTask ) listInsertLogByAPI (ctx context.Context , binlogDir string , fieldsBinlog []milvus .BinlogInfo ) ([]* backuppb.FieldBinlog , int64 , error ) {
423423 keys , sizes , err := storage .ListPrefixFlat (ctx , ct .milvusStorage , binlogDir , true )
424424 if err != nil {
425425 return nil , 0 , fmt .Errorf ("backup: list insert logs %w" , err )
@@ -449,7 +449,7 @@ func (ct *CollectionTask) listInsertLogByAPI(ctx context.Context, binlogDir stri
449449 return bakFieldsBinlog , lo .Sum (sizes ), nil
450450}
451451
452- func (ct * CollectionTask ) listDeltaLogByAPI (ctx context.Context , binlogDir string , fieldsBinlog []client .BinlogInfo ) ([]* backuppb.FieldBinlog , int64 , error ) {
452+ func (ct * CollectionTask ) listDeltaLogByAPI (ctx context.Context , binlogDir string , fieldsBinlog []milvus .BinlogInfo ) ([]* backuppb.FieldBinlog , int64 , error ) {
453453 keys , sizes , err := storage .ListPrefixFlat (ctx , ct .milvusStorage , binlogDir , true )
454454 if err != nil {
455455 return nil , 0 , fmt .Errorf ("backup: list insert logs %w" , err )
0 commit comments