From 17ea44b288c1299461166e9980332ac385c46625 Mon Sep 17 00:00:00 2001 From: "Adam Ling (MSFT)" Date: Fri, 4 Mar 2022 14:16:41 -0800 Subject: [PATCH] [EH Pyproto] Release updates (#23349) * update docs * add todo --- sdk/eventhub/azure-eventhub/CHANGELOG.md | 10 +++------- sdk/eventhub/azure-eventhub/README.md | 2 +- .../azure/eventhub/_pyamqp/aio/_connection_async.py | 1 + sdk/eventhub/azure-eventhub/samples/README.md | 2 +- 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/sdk/eventhub/azure-eventhub/CHANGELOG.md b/sdk/eventhub/azure-eventhub/CHANGELOG.md index f8c36739951c..cebe84b6010f 100644 --- a/sdk/eventhub/azure-eventhub/CHANGELOG.md +++ b/sdk/eventhub/azure-eventhub/CHANGELOG.md @@ -1,15 +1,11 @@ # Release History -## 5.8.0a3 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 5.8.0a3 (2022-03-08) ### Other Changes +- Improved the performance of async sending and receiving. + ## 5.8.0a2 (2022-02-09) ### Features Added diff --git a/sdk/eventhub/azure-eventhub/README.md b/sdk/eventhub/azure-eventhub/README.md index 0834fd3aff97..65fafdb97726 100644 --- a/sdk/eventhub/azure-eventhub/README.md +++ b/sdk/eventhub/azure-eventhub/README.md @@ -42,7 +42,7 @@ There, you can also find detailed instructions for using the Azure CLI, Azure Po Install the Azure Event Hubs client library for Python with pip: ``` -$ pip install azure-eventhub --pre +$ pip install azure-eventhub==5.8.0a3 ``` ### Authenticate the client diff --git a/sdk/eventhub/azure-eventhub/azure/eventhub/_pyamqp/aio/_connection_async.py b/sdk/eventhub/azure-eventhub/azure/eventhub/_pyamqp/aio/_connection_async.py index fa5193f5e28f..3bfa62569e9a 100644 --- a/sdk/eventhub/azure-eventhub/azure/eventhub/_pyamqp/aio/_connection_async.py +++ b/sdk/eventhub/azure-eventhub/azure/eventhub/_pyamqp/aio/_connection_async.py @@ -452,6 +452,7 @@ async def listen(self, wait=False, batch=1, **kwargs): return for _ in range(batch): if await asyncio.ensure_future(self._listen_one_frame(**kwargs)): + # TODO: compare the perf difference between ensure_future and direct await break except (OSError, IOError, SSLError, socket.error) as exc: self._error = AMQPConnectionError( diff --git a/sdk/eventhub/azure-eventhub/samples/README.md b/sdk/eventhub/azure-eventhub/samples/README.md index c94d69fe0bcc..fe9a76f9860a 100644 --- a/sdk/eventhub/azure-eventhub/samples/README.md +++ b/sdk/eventhub/azure-eventhub/samples/README.md @@ -94,7 +94,7 @@ There, you can also find detailed instructions for using the Azure CLI, Azure Po 1. Install the Azure Event Hubs client library for Python with [pip](https://pypi.org/project/pip/): ```bash -pip install azure-eventhub +pip install azure-eventhub==5.8.0a3 ``` To run samples that utilize the Azure Active Directory for authentication, please install the `azure-identity` library: