From 0b848592a8d84e3b3bda23584308ab24965e55ca Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Mon, 15 Jul 2024 12:35:05 +0200 Subject: 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. --- src/buildtool/main/retry.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/buildtool/main/retry.cpp') 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; -- cgit v1.2.3