Skip to content

Commit 9492f14

Browse files
committed
chore: azureservicebus subscription config
1 parent 51f0894 commit 9492f14

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/mqs/queue_azureservicebus.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"context"
55
"fmt"
66
"sync"
7+
"time"
78

89
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
910
"github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus"
@@ -93,7 +94,9 @@ func (q *AzureServiceBusQueue) Subscribe(ctx context.Context) (Subscription, err
9394
return nil, err
9495
}
9596

96-
subscription, err := azuresb.OpenSubscription(ctx, q.client, receiver, nil)
97+
subscription, err := azuresb.OpenSubscription(ctx, q.client, receiver, &azuresb.SubscriptionOptions{
98+
ListenerTimeout: 10 * time.Second, // Increased for cross-region scenarios
99+
})
97100
if err != nil {
98101
return nil, err
99102
}

0 commit comments

Comments
 (0)