[skip ci]Add comment when stop rpc server in rootcoord service (#12603)

Signed-off-by: yun.zhang <yun.zhang@zilliz.com>

Co-authored-by: yun.zhang <yun.zhang@zilliz.com>
pull/12639/head
jaime 2021-12-02 18:13:49 +08:00 committed by GitHub
parent d58daf06cf
commit 2a1e8614b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -293,6 +293,7 @@ func (s *Server) Stop() error {
log.Debug("Rootcoord begin to stop grpc server")
s.cancel()
if s.grpcServer != nil {
log.Debug("Graceful stop grpc server...")
s.grpcServer.GracefulStop()
}
s.wg.Wait()