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