Skip to content

Commit 6230161

Browse files
authored
Update minimum frequenz-channels version to v1.0.0-rc1 (#35)
2 parents 97196bd + e21cc53 commit 6230161

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

RELEASE_NOTES.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,9 @@
22

33
## Summary
44

5-
<!-- Here goes a general summary of what this release is about -->
5+
This release updates the minimum required `frequenz-channels` version is updated
6+
to v1.0.0-rc1. This is a breaking change, because the channels API has changed.
67

78
## Upgrading
89

9-
<!-- Here goes notes on how to upgrade from previous versions, including deprecations and what they should be replaced with -->
10-
11-
## New Features
12-
13-
<!-- Here goes the main new features and examples or instructions on how to use them -->
14-
15-
## Bug Fixes
16-
17-
<!-- Here goes notable bug fixes that are worth a special mention or explanation -->
10+
Follow the upgrading instructions from the new channel release: [v1.0.0-rc1](https://github.com/frequenz-floss/frequenz-channels-python/releases/tag/v1.0.0-rc.1).

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ classifiers = [
2828
requires-python = ">= 3.11, < 4"
2929
# TODO(cookiecutter): Remove and add more dependencies if appropriate
3030
dependencies = [
31-
"frequenz-channels >= v1.0.0-beta.2, < 2",
31+
"frequenz-channels >= v1.0.0-rc1, < 2",
3232
"grpcio >= 1.54.2, < 2",
3333
"protobuf >= 4.21.6, < 5",
3434
"typing-extensions >= 4.5.0, < 5",

src/frequenz/client/base/streaming.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def __init__(
5151
)
5252

5353
self._channel: channels.Broadcast[OutputT] = channels.Broadcast(
54-
f"GrpcStreamBroadcaster-{stream_name}"
54+
name=f"GrpcStreamBroadcaster-{stream_name}"
5555
)
5656
self._task = asyncio.create_task(self._run())
5757

@@ -64,7 +64,7 @@ def new_receiver(self, maxsize: int = 50) -> channels.Receiver[OutputT]:
6464
Returns:
6565
A new receiver.
6666
"""
67-
return self._channel.new_receiver(maxsize=maxsize)
67+
return self._channel.new_receiver(limit=maxsize)
6868

6969
async def stop(self) -> None:
7070
"""Stop the streaming helper."""

0 commit comments

Comments
 (0)