From a8d97a70bf624506ce01bbd59cac0b21dea83288 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20B=C3=B6hm?= Date: Wed, 7 Aug 2024 00:52:47 +0200 Subject: [PATCH] docs: Update CHANGELOG for release --- CHANGELOG.md | 8 +++++++- docs/alongside-fastapi-and-co.md | 2 +- docs/subscribing-to-a-topic.md | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b771f4b..2e22c6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] -## Changed +## [2.3.0] - 2024-08-07 + +### Added + +- Implement `len(client.messages)` to return number of messages in queue (@empicano in #323) + +### Changed - Update FastAPI docs to use dependency injection (@odie5533 in #321) diff --git a/docs/alongside-fastapi-and-co.md b/docs/alongside-fastapi-and-co.md index f2f7c66..6980112 100644 --- a/docs/alongside-fastapi-and-co.md +++ b/docs/alongside-fastapi-and-co.md @@ -57,5 +57,5 @@ This is a combination of some concepts addressed in more detail in other section ``` ```{tip} -With Starlette you can yield the initialized client to [the lifespan's state](https://www.starlette.io/lifespan/) instead of using global variables. +With Starlette you can yield the initialized client to [the lifespan's state](https://www.starlette.io/lifespan/) instead of using global variables and dependency injection. ``` diff --git a/docs/subscribing-to-a-topic.md b/docs/subscribing-to-a-topic.md index 4b02565..f5e1278 100644 --- a/docs/subscribing-to-a-topic.md +++ b/docs/subscribing-to-a-topic.md @@ -98,7 +98,7 @@ asyncio.run(main()) ``` ```{tip} -By default, the size of the queue is unlimited. You can set a limit through the client's `max_queued_incoming_messages` argument. +By default, the size of the queue is unlimited. You can set a limit through the client's `max_queued_incoming_messages` argument. `len(client.messages)` returns the current number of messages in the queue. ``` ## Processing concurrently