Skip to content

Commit 207b4e9

Browse files
authored
Fix stream reconnecting (#151)
2 parents 6efd3d8 + e7ac2d2 commit 207b4e9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

RELEASE_NOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
## Bug Fixes
88

99
* Fix that `dispatch-cli stream` would try to print an event as dispatch, causing an exception.
10+
* Fix that `stream()` would not reconnect and just closes the channel upon disconnection.

src/frequenz/client/dispatch/_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def _get_stream(
241241
),
242242
),
243243
transform=DispatchEvent.from_protobuf,
244-
retry_strategy=LinearBackoff(interval=1, limit=0),
244+
retry_strategy=LinearBackoff(interval=1, limit=None),
245245
)
246246
self._streams[microgrid_id] = broadcaster
247247

0 commit comments

Comments
 (0)