From 32fd117a36570a6474a835a72d201d4f7d83545c Mon Sep 17 00:00:00 2001 From: "zhenshan.cao" Date: Fri, 1 Oct 2021 23:38:31 +0800 Subject: [PATCH] [skip ci] fix golint error in datacoord (#9040) Signed-off-by: zhenshan.cao --- internal/distributed/datacoord/service.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/distributed/datacoord/service.go b/internal/distributed/datacoord/service.go index 3137d7e2ca..ac1e16e7ec 100644 --- a/internal/distributed/datacoord/service.go +++ b/internal/distributed/datacoord/service.go @@ -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