Skip to content

Commit

Permalink
fix(frontend): handle grpc register error
Browse files Browse the repository at this point in the history
  • Loading branch information
SOF3 committed Jan 10, 2025
1 parent fc2937f commit 797f4aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/frontend/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ func (plugin *Plugin) Start(ctx context.Context) error {

grpcServer := grpc.NewServer()

handler.Register(grpcServer, health.NewServer())
if err := handler.Register(grpcServer, health.NewServer()); err != nil {
return fmt.Errorf("register jaeger storage plugin on grpc server: %w", err)
}

listener, err := net.Listen("tcp", plugin.options.address)
if err != nil {
Expand Down

0 comments on commit 797f4aa

Please sign in to comment.