func initializeAuctioneerClient(logger lager.Logger) auctioneer.Client { if *auctioneerAddress == "" { logger.Fatal("auctioneer-address-validation-failed", errors.New("auctioneerAddress is required")) } if *auctioneerCACert != "" || *auctioneerClientCert != "" || *auctioneerClientKey != "" { client, err := auctioneer.NewSecureClient(*auctioneerAddress, *auctioneerCACert, *auctioneerClientCert, *auctioneerClientKey, *auctioneerRequireTLS) if err != nil { logger.Fatal("failed-to-construct-auctioneer-client", err) } return client } return auctioneer.NewClient(*auctioneerAddress) }
func initializeAuctioneerClient(logger lager.Logger) auctioneer.Client { if *auctioneerAddress == "" { logger.Fatal("auctioneer-address-validation-failed", errors.New("auctioneerAddress is required")) } return auctioneer.NewClient(*auctioneerAddress) }