Skip to content

Commit

Permalink
improved error handling func StartServer
Browse files Browse the repository at this point in the history
  • Loading branch information
y-eight committed Nov 16, 2022
1 parent 6e84315 commit 43a38b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mesh/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ func (m *Mesh) StartServer() error {
grpcServer := grpc.NewServer(opts...)
meshv1.RegisterMeshServiceServer(grpcServer, meshServer)
reflection.Register(grpcServer)
grpcServer.Serve(lis)
err = grpcServer.Serve(lis)
if err != nil {
return err
}
return nil
}

0 comments on commit 43a38b7

Please sign in to comment.