Skip to content
Snippets Groups Projects
Commit bfb6766f authored by zhenshan.cao's avatar zhenshan.cao Committed by yefu.chen
Browse files

Refactor indexservice

parent f660caca
Branches
Tags
No related merge requests found
...@@ -144,13 +144,11 @@ func (s *ServiceImpl) Stop() error { ...@@ -144,13 +144,11 @@ func (s *ServiceImpl) Stop() error {
var err error var err error
nodeClients, err := s.nodeInfos.ObtainAllClients() nodeClients, err := s.nodeInfos.ObtainAllClients()
if err != nil { if err != nil {
panic(err)
return err return err
} }
for _, nodeClient := range nodeClients { for _, nodeClient := range nodeClients {
err = nodeClient.Stop() err = nodeClient.Stop()
if err != nil { if err != nil {
panic(err)
return err return err
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment