Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: Shivam Kumar <[email protected]>
  • Loading branch information
shivamkm07 committed Jul 25, 2023
1 parent bf51bf8 commit d35088b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pubsub/azure/eventhubs/eventhubs.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"errors"
"reflect"
"strconv"
"time"

"github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs"

Expand Down Expand Up @@ -130,7 +131,7 @@ func (aeh *AzureEventHubs) Subscribe(ctx context.Context, req pubsub.SubscribeRe
// Check if requireAllProperties is set and is truthy
getAllProperties := utils.IsTruthy(req.Metadata["requireAllProperties"])

pubsubHandler := aeh.GetPubSubHandlerFunc(topic, getAllProperties, handler)
pubsubHandler := aeh.GetPubSubHandlerFunc(topic, getAllProperties, handler, 1*time.Minute)
// Start the subscription
// This is non-blocking
return aeh.AzureEventHubs.Subscribe(ctx, topic, 1, impl.DefaultMaxBulkSubAwaitDurationMs, pubsubHandler)
Expand All @@ -149,7 +150,7 @@ func (aeh *AzureEventHubs) BulkSubscribe(ctx context.Context, req pubsub.Subscri
maxBulkSubCount := utils.GetIntValOrDefault(req.BulkSubscribeConfig.MaxMessagesCount, impl.DefaultMaxBulkSubCount)
maxBulkSubAwaitDurationMs := utils.GetIntValOrDefault(req.BulkSubscribeConfig.MaxAwaitDurationMs, impl.DefaultMaxBulkSubAwaitDurationMs)

bulkPubsubHandler := aeh.GetBulkPubSubHandlerFunc(topic, getAllProperties, handler)
bulkPubsubHandler := aeh.GetBulkPubSubHandlerFunc(topic, getAllProperties, handler, 1*time.Minute)

// Start the subscription
// This is non-blocking
Expand Down

0 comments on commit d35088b

Please sign in to comment.