Fix EventHubs samples warnings (#4844)

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
This commit is contained in:
Anton Kolesnyk 2023-08-04 14:25:17 -07:00 committed by GitHub
parent 35ee073d91
commit 3391610edb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 0 deletions

View File

@ -26,6 +26,7 @@ int main()
if (eventhubName == nullptr)
{
std::cerr << "Missing environment variable EVENTHUB_NAME" << std::endl;
return 1;
}
Azure::Messaging::EventHubs::ConsumerClient consumerClient(

View File

@ -27,6 +27,7 @@ int main()
if (eventhubName == nullptr)
{
std::cerr << "Missing environment variable EVENTHUB_NAME" << std::endl;
return 1;
}
Azure::Messaging::EventHubs::ProducerClient producerClient(

View File

@ -27,6 +27,7 @@ int main()
if (eventhubName == nullptr)
{
std::cerr << "Missing environment variable EVENTHUB_NAME" << std::endl;
return 1;
}
/* Create a sample EventHubs application using a PartitionClient to read all the messages from an

View File

@ -27,6 +27,7 @@ int main()
if (eventhubName == nullptr)
{
std::cerr << "Missing environment variable EVENTHUB_NAME" << std::endl;
return 1;
}
Azure::Messaging::EventHubs::ProducerClient producerClient(