Fixbug: remove wrong check code (#6372)

Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
pull/6390/head
zhenshan.cao 2021-07-08 20:17:43 +08:00 committed by GitHub
parent b53699b846
commit 6b4b71bf03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 7 deletions

View File

@ -293,12 +293,6 @@ func (i *IndexCoord) BuildIndex(ctx context.Context, req *indexpb.BuildIndexRequ
kv: i.kv,
}
if i.nodeClients == nil || i.nodeClients.Len() <= 0 {
ret.Status.Reason = "IndexBuilding Service not available"
return ret, nil
}
t.nodeClients = i.nodeClients
var cancel func()
t.ctx, cancel = context.WithTimeout(ctx, reqTimeoutInterval)
defer cancel()

View File

@ -77,7 +77,6 @@ type IndexAddTask struct {
buildQueue TaskQueue
kv kv.BaseKV
builderClient types.IndexNode
nodeClients *PriorityQueue
buildClientNodeID UniqueID
}