fix
Some checks reported errors
BlockStorage/repertory/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
Scott E. Graves 2024-10-24 20:28:14 -05:00
parent 21fd9fe227
commit 6aea801779
2 changed files with 22 additions and 15 deletions

View File

@ -30,26 +30,26 @@
namespace repertory { namespace repertory {
class app_config final { class app_config final {
public: public:
[[nodiscard]] static auto default_agent_name(const provider_type &prov) [[nodiscard]] static auto
-> std::string; default_agent_name(const provider_type &prov) -> std::string;
[[nodiscard]] static auto default_api_port(const provider_type &prov) [[nodiscard]] static auto
-> std::uint16_t; default_api_port(const provider_type &prov) -> std::uint16_t;
[[nodiscard]] static auto default_data_directory(const provider_type &prov) [[nodiscard]] static auto
-> std::string; default_data_directory(const provider_type &prov) -> std::string;
[[nodiscard]] static auto default_remote_port(const provider_type &prov) [[nodiscard]] static auto
-> std::uint16_t; default_remote_port(const provider_type &prov) -> std::uint16_t;
[[nodiscard]] static auto default_rpc_port(const provider_type &prov) [[nodiscard]] static auto
-> std::uint16_t; default_rpc_port(const provider_type &prov) -> std::uint16_t;
[[nodiscard]] static auto get_provider_display_name(const provider_type &prov) [[nodiscard]] static auto
-> std::string; get_provider_display_name(const provider_type &prov) -> std::string;
[[nodiscard]] static auto get_provider_name(const provider_type &prov) [[nodiscard]] static auto
-> std::string; get_provider_name(const provider_type &prov) -> std::string;
public: public:
app_config(const provider_type &prov, std::string_view data_directory = ""); app_config(const provider_type &prov, std::string_view data_directory = "");
@ -378,7 +378,13 @@ public:
s3_config_ = std::move(s3); s3_config_ = std::move(s3);
save(); save();
} }
#endif
void set_sia_config(sia_config sia) {
config_changed_ = true;
sia_config_ = std::move(sia);
save();
}
#endif // defined(PROJECT_TESTING)
void set_is_remote_mount(bool is_remote_mount); void set_is_remote_mount(bool is_remote_mount);

View File

@ -109,6 +109,7 @@ protected:
config->set_enable_drive_events(true); config->set_enable_drive_events(true);
config->set_event_level(event_level::trace); config->set_event_level(event_level::trace);
config->set_host_config(src_cfg.get_host_config()); config->set_host_config(src_cfg.get_host_config());
config->set_sia_config(src_cfg.get_sia_config());
} }
drive_args = std::vector<std::string>({ drive_args = std::vector<std::string>({