Skip to content

Commit

Permalink
fix[tf]: error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Andreyko committed Oct 31, 2023
1 parent 63c7a76 commit 37dc040
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ func (server *embedServer) RunDetached(ctx context.Context) error {

var opts []grpc.ServerOption
server.grpcServer = grpc.NewServer(opts...)
service.RegisterGRPC(ctx, server.grpcServer)
if err := service.RegisterGRPC(ctx, server.grpcServer); err != nil {
return err
}

go func() {
if err := server.grpcServer.Serve(lis); err != nil {
Expand Down

0 comments on commit 37dc040

Please sign in to comment.