Skip to content

Commit

Permalink
chore: please
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Phelps <[email protected]>
  • Loading branch information
markphelps committed Jan 30, 2025
1 parent 5cf000f commit e41c1a9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/flipt/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,20 +357,19 @@ func run(ctx context.Context, logger *zap.Logger, cfg *config.Config) error {
handlers = &grpchan.HandlerMap{}
)

handlers.ForEach(ipch.RegisterService)

grpcServer, err := cmd.NewGRPCServer(ctx, logger, cfg, handlers, info, forceMigrate)

Check warning on line 360 in cmd/flipt/main.go

View check run for this annotation

Codecov / codecov/patch

cmd/flipt/main.go#L355-L360

Added lines #L355 - L360 were not covered by tests
if err != nil {
return err
}

// register all grpc services onto the grpc server
handlers.ForEach(grpcServer.RegisterService)

Check warning on line 367 in cmd/flipt/main.go

View check run for this annotation

Codecov / codecov/patch

cmd/flipt/main.go#L366-L367

Added lines #L366 - L367 were not covered by tests
// register all grpc services onto the grpc server
// starts grpc server
g.Go(grpcServer.Run)

// register all grpc services onto the in-process client connection
handlers.ForEach(ipch.RegisterService)

if cfg.Tracing.Enabled {
ipch = grpchan.InterceptClientConn(ipch, otelgrpc.UnaryClientInterceptor(), nil).(*inprocgrpc.Channel)

Check warning on line 375 in cmd/flipt/main.go

View check run for this annotation

Codecov / codecov/patch

cmd/flipt/main.go#L371-L375

Added lines #L371 - L375 were not covered by tests
Expand Down

0 comments on commit e41c1a9

Please sign in to comment.