Fix EventHubs samples warnings (#4844)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
This commit is contained in:
parent
35ee073d91
commit
3391610edb
@ -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(
|
||||
|
||||
@ -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(
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user