From 2b7cdfc8e4a8dff2fb534f6be8381d2753e86d80 Mon Sep 17 00:00:00 2001 From: groot Date: Thu, 28 Oct 2021 18:06:26 +0800 Subject: [PATCH] [skip ci] Format code (#10824) Signed-off-by: yhmo --- internal/distributed/indexnode/service.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/distributed/indexnode/service.go b/internal/distributed/indexnode/service.go index 9136354e6d..ac4e58ff72 100644 --- a/internal/distributed/indexnode/service.go +++ b/internal/distributed/indexnode/service.go @@ -56,7 +56,6 @@ type Server struct { // Run initializes and starts IndexNode's grpc service. func (s *Server) Run() error { - if err := s.init(); err != nil { return err } @@ -69,7 +68,6 @@ func (s *Server) Run() error { } func (s *Server) startGrpcLoop(grpcPort int) { - defer s.loopWg.Done() log.Debug("IndexNode", zap.String("network address", Params.Address), zap.Int("network port: ", grpcPort)) @@ -94,7 +92,6 @@ func (s *Server) startGrpcLoop(grpcPort int) { if err := s.grpcServer.Serve(lis); err != nil { s.grpcErrChan <- err } - } // init initializes IndexNode's grpc service.