Align exp.backoff to current configuration format #1062
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The primary reason for this change is to improve code clarity and consistency. Using the full word
exponential_backoffinstead of the abbreviation expbackoff makes the configuration options easier to understand for new developers and aligns them with the naming conventions used elsewhere in the Keylime codebase. This change has no impact on functionality. To address this, renaming of three configuration variables is performed across the codebase to be more descriptive and consistent:expbackoff_initial_delayis nowexponential_backoff_initial_delayexpbackoff_max_retriesis nowexponential_backoff_max_retriesexpbackoff_max_delayis nowexponential_backoff_max_delayThis renaming has been applied consistently in all the places where these parameters are defined or used:
Configuration Structs (keylime/src/config/base.rs & push_model.rs): The field names in the main AgentConfig struct and the PushModelConfig view have been updated to reflect the new names.
Agent Logic (keylime-push-model-agent/src/main.rs & registration.rs): All code that accesses these configuration values, either through direct struct access or via getter methods, has been updated to use the new, more descriptive names.