Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion sdk/eventhub/azure-eventhub/azure/eventhub/_consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def receive(self, batch=False, max_batch_size=300, max_wait_time=None):
while retried_times <= max_retries:
try:
if self._open():
self._handler.do_work(batch=self._prefetch) # type: ignore
self._handler.do_work() # type: ignore
break
except Exception as exception: # pylint: disable=broad-except
if (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ async def _client_run_async(self, **kwargs):
:rtype: bool
"""
try:
await self._connection.listen(wait=self._socket_timeout, **kwargs)
await self._connection.listen(wait=self._socket_timeout, batch=self._link_credit, **kwargs)
except ValueError:
_logger.info("Timeout reached, closing receiver.")
self._shutdown = True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ def _client_run(self, **kwargs):
:rtype: bool
"""
try:
self._connection.listen(wait=self._socket_timeout, **kwargs)
self._connection.listen(wait=self._socket_timeout, batch=self._link_credit, **kwargs)
Comment thread
l0lawrence marked this conversation as resolved.
except ValueError:
_logger.info("Timeout reached, closing receiver.")
self._shutdown = True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ async def _receive_task(self):
while retried_times <= max_retries:
try:
await self._open()
await cast(ReceiveClientAsync, self._handler).do_work_async(batch=self._prefetch)
await cast(ReceiveClientAsync, self._handler).do_work_async()
except asyncio.CancelledError: # pylint: disable=try-except-raise
raise
except Exception as exception: # pylint: disable=broad-except
Expand Down