Skip to content

Keep retrying on client connection error#10

Merged
shsms merged 2 commits into
frequenz-floss:v0.x.xfrom
shsms:client-fix
Sep 2, 2025
Merged

Keep retrying on client connection error#10
shsms merged 2 commits into
frequenz-floss:v0.x.xfrom
shsms:client-fix

Conversation

@shsms
Copy link
Copy Markdown
Collaborator

@shsms shsms commented Sep 1, 2025

When a streaming method was returning immediately, the client exited
leading to the logical meter exiting as well.

This PR fixes it.

When a streaming method was returning immediately, the client exited
leading to the logical meter exiting as well.

This commit fixes it.

Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
Copilot AI review requested due to automatic review settings September 1, 2025 15:34
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses an issue where client connection errors were causing the logical meter to exit prematurely. The change removes error propagation from the stream handling functions, allowing the system to continue running and retry connections instead of terminating when streaming methods return immediately due to connection failures.

  • Converted start_electrical_component_telemetry_stream from returning Result<(), Error> to returning ()
  • Replaced error propagation with logging and early returns for connection failures
  • Updated callers to not propagate errors from the streaming function

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/client/microgrid_client_actor.rs
@shsms shsms added the cmd:skip-release-notes It is not necessary to update release notes for this PR label Sep 1, 2025
Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
@shsms shsms enabled auto-merge September 1, 2025 16:39
Copy link
Copy Markdown
Collaborator

@niklas-timpe niklas-timpe left a comment

Choose a reason for hiding this comment

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

lgtm

@shsms shsms added this pull request to the merge queue Sep 2, 2025
Merged via the queue into frequenz-floss:v0.x.x with commit 1cb99a6 Sep 2, 2025
3 checks passed
@shsms shsms deleted the client-fix branch September 2, 2025 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmd:skip-release-notes It is not necessary to update release notes for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants