From 2b8f2fbfd69f6982ae50f104a33fc33e68761fed Mon Sep 17 00:00:00 2001 From: gokulav137 <52277763+gokulav137@users.noreply.github.com> Date: Mon, 25 Sep 2023 23:40:47 +0530 Subject: [PATCH] Revert unintended change - azure-event-hubs-go import alias reverted from eventhubs to eventhub Signed-off-by: gokulav137 <52277763+gokulav137@users.noreply.github.com> --- sensors/context.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sensors/context.go b/sensors/context.go index 966ef6b06e..8ba5344929 100644 --- a/sensors/context.go +++ b/sensors/context.go @@ -21,6 +21,7 @@ import ( "time" eventhub "github.com/Azure/azure-event-hubs-go/v3" + eventhubs "github.com/Azure/azure-event-hubs-go/v3" servicebus "github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus" "github.com/Shopify/sarama" "github.com/apache/openwhisk-client-go/whisk" @@ -68,7 +69,7 @@ type SensorContext struct { // openwhiskClients holds the references to active OpenWhisk clients. openwhiskClients *common.StringKeyedMap[*whisk.Client] // azureEventHubsClients holds the references to active Azure Event Hub clients. - azureEventHubsClients *common.StringKeyedMap[*eventhub.Hub] + azureEventHubsClients *common.StringKeyedMap[*eventhubs.Hub] // azureServiceBusClients holds the references to active Azure Service Bus clients. azureServiceBusClients *common.StringKeyedMap[*servicebus.Sender] metrics *sensormetrics.Metrics