mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-06 17:18:35 +08:00
Fix golint warnings for rootcoord (#11872)
Signed-off-by: yudong.cai <yudong.cai@zilliz.com>
This commit is contained in:
parent
173e7b3808
commit
29e9adc7be
@ -192,7 +192,7 @@ func (t *CreateCollectionReqTask) Execute(ctx context.Context) error {
|
||||
ddCollReq.Base.Timestamp = ts
|
||||
ddOpStr, err := EncodeDdOperation(&ddCollReq, CreateCollectionDDType)
|
||||
if err != nil {
|
||||
return fmt.Errorf("EncodeDdOperation fail, error = %w", err)
|
||||
return fmt.Errorf("encodeDdOperation fail, error = %w", err)
|
||||
}
|
||||
|
||||
// use lambda function here to guarantee all resources to be released
|
||||
@ -293,7 +293,7 @@ func (t *DropCollectionReqTask) Execute(ctx context.Context) error {
|
||||
ddReq.Base.Timestamp = ts
|
||||
ddOpStr, err := EncodeDdOperation(&ddReq, DropCollectionDDType)
|
||||
if err != nil {
|
||||
return fmt.Errorf("EncodeDdOperation fail, error = %w", err)
|
||||
return fmt.Errorf("encodeDdOperation fail, error = %w", err)
|
||||
}
|
||||
|
||||
aliases := t.core.MetaTable.ListAliases(collMeta.ID)
|
||||
@ -533,7 +533,7 @@ func (t *CreatePartitionReqTask) Execute(ctx context.Context) error {
|
||||
ddReq.Base.Timestamp = ts
|
||||
ddOpStr, err := EncodeDdOperation(&ddReq, CreatePartitionDDType)
|
||||
if err != nil {
|
||||
return fmt.Errorf("EncodeDdOperation fail, error = %w", err)
|
||||
return fmt.Errorf("encodeDdOperation fail, error = %w", err)
|
||||
}
|
||||
|
||||
// use lambda function here to guarantee all resources to be released
|
||||
@ -629,7 +629,7 @@ func (t *DropPartitionReqTask) Execute(ctx context.Context) error {
|
||||
ddReq.Base.Timestamp = ts
|
||||
ddOpStr, err := EncodeDdOperation(&ddReq, DropPartitionDDType)
|
||||
if err != nil {
|
||||
return fmt.Errorf("EncodeDdOperation fail, error = %w", err)
|
||||
return fmt.Errorf("encodeDdOperation fail, error = %w", err)
|
||||
}
|
||||
|
||||
// use lambda function here to guarantee all resources to be released
|
||||
|
||||
@ -151,12 +151,12 @@ func (t *timetickSync) UpdateTimeTick(in *internalpb.ChannelTimeTickMsg, reason
|
||||
return nil
|
||||
}
|
||||
if len(in.Timestamps) != len(in.ChannelNames) {
|
||||
return fmt.Errorf("Invalid TimeTickMsg")
|
||||
return fmt.Errorf("invalid TimeTickMsg")
|
||||
}
|
||||
|
||||
prev, ok := t.proxyTimeTick[in.Base.SourceID]
|
||||
if !ok {
|
||||
return fmt.Errorf("Skip ChannelTimeTickMsg from un-recognized proxy node %d", in.Base.SourceID)
|
||||
return fmt.Errorf("skip ChannelTimeTickMsg from un-recognized proxy node %d", in.Base.SourceID)
|
||||
}
|
||||
|
||||
// if ddl operation not finished, skip current ts update
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user