diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-07-15 12:35:05 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-07-19 09:50:37 +0200 |
commit | 0b848592a8d84e3b3bda23584308ab24965e55ca (patch) | |
tree | 58941bcf4007c4478986344551218019927df51d /src/buildtool/main/retry.cpp | |
parent | 68f5518b10108af6abadfe709af4e203d388b834 (diff) | |
download | justbuild-0b848592a8d84e3b3bda23584308ab24965e55ca.tar.gz |
Fix naming inconsistencies in retry configuration
The retry_parameters.hpp header-only library defining the Retry
class now is the retry_config.hpp header-only library defining the
RetryConfig class.
Diffstat (limited to 'src/buildtool/main/retry.cpp')
-rw-r--r-- | src/buildtool/main/retry.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/buildtool/main/retry.cpp b/src/buildtool/main/retry.cpp index f2ba4b3a..c7c100cf 100644 --- a/src/buildtool/main/retry.cpp +++ b/src/buildtool/main/retry.cpp @@ -22,26 +22,27 @@ #else -#include "src/buildtool/common/remote/retry_parameters.hpp" +#include "src/buildtool/common/remote/retry_config.hpp" #include "src/buildtool/logging/log_level.hpp" #include "src/buildtool/logging/logger.hpp" [[nodiscard]] auto SetupRetryConfig(RetryArguments const& args) -> bool { if (args.max_attempts) { - if (!Retry::SetMaxAttempts(*args.max_attempts)) { + if (!RetryConfig::SetMaxAttempts(*args.max_attempts)) { Logger::Log(LogLevel::Error, "Invalid value for max-attempts."); return false; } } if (args.initial_backoff_seconds) { - if (!Retry::SetInitialBackoffSeconds(*args.initial_backoff_seconds)) { + if (!RetryConfig::SetInitialBackoffSeconds( + *args.initial_backoff_seconds)) { Logger::Log(LogLevel::Error, "Invalid value for initial-backoff-seconds."); return false; } } if (args.max_backoff_seconds) { - if (!Retry::SetMaxBackoffSeconds(*args.max_backoff_seconds)) { + if (!RetryConfig::SetMaxBackoffSeconds(*args.max_backoff_seconds)) { Logger::Log(LogLevel::Error, "Invalid value for max-backoff-seconds."); return false; |