Skip to content

Commit

Permalink
bb_runner: Call NewServersFromConfigurationAndServe() properly
Browse files Browse the repository at this point in the history
  • Loading branch information
EdSchouten committed Oct 4, 2022
1 parent b737c71 commit 0cc2c3f
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions cmd/bb_runner/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,13 @@ func main() {
r = runner.NewPathExistenceCheckingRunner(r, configuration.ReadinessCheckingPathnames)
}

go func() {
log.Fatal(
"gRPC server failure: ",
bb_grpc.NewServersFromConfigurationAndServe(
configuration.GrpcServers,
func(s grpc.ServiceRegistrar) {
runner_pb.RegisterRunnerServer(s, r)
}))
}()
if err := bb_grpc.NewServersFromConfigurationAndServe(
configuration.GrpcServers,
func(s grpc.ServiceRegistrar) {
runner_pb.RegisterRunnerServer(s, r)
}); err != nil {
log.Fatal("gRPC server failure: ", err)
}

lifecycleState.MarkReadyAndWait()
}

0 comments on commit 0cc2c3f

Please sign in to comment.