Refactor indexservice

Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
This commit is contained in:
zhenshan.cao 2021-01-29 18:12:21 +08:00 committed by yefu.chen
parent f660caca0c
commit bfb6766f7c

View File

@ -144,13 +144,11 @@ func (s *ServiceImpl) Stop() error {
var err error
nodeClients, err := s.nodeInfos.ObtainAllClients()
if err != nil {
panic(err)
return err
}
for _, nodeClient := range nodeClients {
err = nodeClient.Stop()
if err != nil {
panic(err)
return err
}
}