Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
config
  • Loading branch information
l0lawrence committed Nov 19, 2024
commit 953fdd3042906507565c872eaca9da52f691a7b0
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ def __init__(
retry_backoff_max: int = 120,
network_tracing: bool = False,
http_proxy: Optional[Dict[str, Any]] = None,
transport_type: TransportType = TransportType.Amqp,
auth_timeout: int = 60,
prefetch: int = 300,
max_batch_size: int = 300,
Expand All @@ -49,6 +48,7 @@ def __init__(
self.backoff_max = retry_backoff_max
self.network_tracing = network_tracing
self.http_proxy = http_proxy
transport_type = kwargs.get("transport_type", None) or TransportType.Amqp
self.transport_type = TransportType.AmqpOverWebsocket if self.http_proxy else transport_type
self.auth_timeout = auth_timeout
self.prefetch = prefetch
Expand Down Expand Up @@ -81,7 +81,7 @@ def __init__(
if self.custom_endpoint_address.find("//") == -1:
self.custom_endpoint_address = "sb://" + self.custom_endpoint_address
endpoint = urlparse(self.custom_endpoint_address)
self.transport_type = kwargs.get("transport_type") or TransportType.AmqpOverWebsocket
self.transport_type = kwargs.get("transport_type", None) or TransportType.AmqpOverWebsocket
self.custom_endpoint_hostname = endpoint.hostname
if amqp_transport.KIND == "pyamqp":
self.custom_endpoint_address += "/$servicebus/websocket"
Expand Down