refactor
Some checks failed
BlockStorage/repertory/pipeline/head There was a failure building this commit

This commit is contained in:
Scott E. Graves 2024-12-20 17:55:33 -06:00
parent a0f6ff6f7d
commit a72746d491

View File

@ -23,6 +23,8 @@
#define REPERTORY_INCLUDE_TYPES_REPERTORY_HPP_ #define REPERTORY_INCLUDE_TYPES_REPERTORY_HPP_
namespace repertory { namespace repertory {
constexpr const auto default_timeout_ms{60000U};
template <typename data_t> class atomic final { template <typename data_t> class atomic final {
public: public:
atomic() : mtx_(std::make_shared<std::mutex>()) {} atomic() : mtx_(std::make_shared<std::mutex>()) {}
@ -321,7 +323,7 @@ struct host_config final {
std::string host_name_or_ip{"localhost"}; std::string host_name_or_ip{"localhost"};
std::string path; std::string path;
std::string protocol{"http"}; std::string protocol{"http"};
std::uint32_t timeout_ms{60000U}; std::uint32_t timeout_ms{default_timeout_ms};
auto operator==(const host_config &cfg) const noexcept -> bool { auto operator==(const host_config &cfg) const noexcept -> bool {
if (&cfg != this) { if (&cfg != this) {
@ -350,7 +352,7 @@ struct s3_config final {
std::string encryption_token; std::string encryption_token;
std::string region{"any"}; std::string region{"any"};
std::string secret_key; std::string secret_key;
std::uint32_t timeout_ms{60000U}; std::uint32_t timeout_ms{default_timeout_ms};
std::string url; std::string url;
bool use_path_style{false}; bool use_path_style{false};
bool use_region_in_url{false}; bool use_region_in_url{false};