Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow a single retry with wrong msg_type #4

Merged
merged 1 commit into from
Jan 25, 2024
Merged

Conversation

aesteve-rh
Copy link
Owner

Getters may fail as the VehicleService sends
messages periodically, and the expected message
with the value may not be the first one to be received.

To fix it, allow one retry. One should be enough
in most cases. The downside of this is that the
unexpected message is discarded. Therefore,
getters shall be used with care.

Alternatively, we could have getters that
discharge the responsibility of processing
the response to users.

Getters may fail as the VehicleService sends
messages periodically, and the expected message
with the value may not be the first one to be received.

To fix it, allow one retry. One should be enough
in most cases. The downside of this is that the
unexpected message is discarded. Therefore,
getters shall be used with care.

Alternatively, we could have getters that
discharge the responsibility of processing
the response to users.

Signed-off-by: Albert Esteve <[email protected]>
@aesteve-rh aesteve-rh self-assigned this Jan 25, 2024
@aesteve-rh aesteve-rh merged commit c1d2245 into main Jan 25, 2024
2 checks passed
@aesteve-rh aesteve-rh deleted the loop-on-getters branch February 1, 2024 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant