[skip ci] fix golint error in datacoord (#9040)

Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
pull/9046/head
zhenshan.cao 2021-10-01 23:38:31 +08:00 committed by GitHub
parent cf93fadabc
commit 32fd117a36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -142,6 +142,8 @@ func (s *Server) start() error {
return s.dataCoord.Start()
}
// Stop stops the DataCoord server gracefully.
// Need to call the GracefulStop interface of grpc server and call the stop method of the inner DataCoord object.
func (s *Server) Stop() error {
var err error
if s.closer != nil {
@ -165,6 +167,7 @@ func (s *Server) Stop() error {
return nil
}
// Run starts the Server. Need to call inner init and start method.
func (s *Server) Run() error {
if err := s.init(); err != nil {
return err