Skip to content

Conversation

@alicefr
Copy link
Contributor

@alicefr alicefr commented Dec 12, 2025

Support for an optional field for setting the number of retries. This can be either a positive number or 'inifinity'. If no value is specify, then the pin tries 10 times all the servers.

Copy link

@sergio-correia sergio-correia left a comment

Choose a reason for hiding this comment

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

Looks good overall, other than the minor nit I mentioned with the retry constant; It also likely needs to run cargo fmt and fix clippy warnings.

cli/src/main.rs Outdated

let executor = RealCommandExecutor;
let jwk = fetch_and_prepare_jwk(&config.servers, &config.path, initdata.clone(), &executor)?;
let num_retries = config.num_retries.as_ref().unwrap_or(&NumRetries::Finite(10));

Choose a reason for hiding this comment

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

This 10 should be probably made into a constant; it is used again further on in decrypt().

Support for an optional field for setting the number of retries. This
can be either a positive number or 'inifinity'. If no value is specify,
then the pin tries 10 times all the servers.

Signed-off-by: Alice Frosi <[email protected]>
@alicefr alicefr force-pushed the config-num-retries branch from 4eafbb5 to fc7d8df Compare January 5, 2026 13:05
@alicefr
Copy link
Contributor Author

alicefr commented Jan 5, 2026

@sergio-correia thanks for the review. I run cargo fmt and replace the 10 with a constant. PTAL

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.

2 participants