Skip to content

Conversation

@flora-hofmann-frequenz
Copy link
Collaborator

After a sensitivity analysis, the default ChannelOptions() of the base client are used (with the option to change them), as even with different configurations of KeepAliveOptions() of interval and timeout, the client sometimes has to retry.

@github-actions github-actions bot added part:docs Affects the documentation part:tests Affects the unit, integration and performance (benchmarks) tests labels Mar 27, 2025
Copy link
Contributor

@cwasicki cwasicki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

except grpcaio.AioRpcError as e:
print(f"RPC failed: {e}")
return
receiver = broadcaster.new_receiver()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, we get a receiver here. We can have two methods, one returning an iterator as we have now, another returning a receiver. That would be useful for you, correct @phillip-wenig-frequenz ?

Can be a subsequent PR though.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will add it in a follow up PR! (Issue #155)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually you just need a function that returns a receiver, because the receiver is already an iterator.

retry_strategy=None,
)

receiver = broadcaster.new_receiver()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment about the receiver method as above.

@flora-hofmann-frequenz flora-hofmann-frequenz added this pull request to the merge queue Mar 28, 2025
Merged via the queue into frequenz-floss:v0.x.x with commit 82267a9 Mar 28, 2025
14 checks passed
@flora-hofmann-frequenz flora-hofmann-frequenz deleted the incorporate_grpcbroadcaster branch March 28, 2025 06:26
@cwasicki cwasicki mentioned this pull request Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:docs Affects the documentation part:tests Affects the unit, integration and performance (benchmarks) tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants