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

feature(*): add automatic retries to AtatClient::send implementation #124

Merged
merged 6 commits into from
Apr 11, 2022

Conversation

MathiasKoch
Copy link
Member

@MathiasKoch MathiasKoch commented Apr 8, 2022

Introduces a new auto-implemented send_retry() function to AtatClient, and a new associated const ATTEMPTS: u8 to AtatCmd.

When send_retry() is used instead of send(), it will automatically retry a command ATTEMPTS times, if the result is Err(Error::Timeout) | Err(Error::Parse)

Fixes #123

atat/src/traits.rs Outdated Show resolved Hide resolved
atat/src/client.rs Outdated Show resolved Hide resolved
@MathiasKoch MathiasKoch merged commit a7716dd into master Apr 11, 2022
@MathiasKoch MathiasKoch deleted the feature/auto-retry branch April 11, 2022 05:43
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.

Add support for automatic command retry
2 participants