fix
Some checks reported errors
BlockStorage/repertory/pipeline/head Something is wrong with the build of this commit
Some checks reported errors
BlockStorage/repertory/pipeline/head Something is wrong with the build of this commit
This commit is contained in:
parent
86918595b3
commit
c2e9960ad5
@ -46,14 +46,14 @@ public:
|
|||||||
[[nodiscard]] static auto default_rpc_port(const provider_type &prov)
|
[[nodiscard]] static auto default_rpc_port(const provider_type &prov)
|
||||||
-> std::uint16_t;
|
-> std::uint16_t;
|
||||||
|
|
||||||
[[nodiscard]] static auto get_data_directory() -> std::string;
|
|
||||||
|
|
||||||
[[nodiscard]] static auto get_provider_display_name(const provider_type &prov)
|
[[nodiscard]] static auto get_provider_display_name(const provider_type &prov)
|
||||||
-> std::string;
|
-> std::string;
|
||||||
|
|
||||||
[[nodiscard]] static auto get_provider_name(const provider_type &prov)
|
[[nodiscard]] static auto get_provider_name(const provider_type &prov)
|
||||||
-> std::string;
|
-> std::string;
|
||||||
|
|
||||||
|
[[nodiscard]] static auto get_root_data_directory() -> std::string;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
[[nodiscard]] static auto get_stop_requested() -> bool;
|
[[nodiscard]] static auto get_stop_requested() -> bool;
|
||||||
|
|
||||||
|
@ -699,7 +699,7 @@ auto app_config::default_api_port(const provider_type &prov) -> std::uint16_t {
|
|||||||
return PROVIDER_API_PORTS.at(static_cast<std::size_t>(prov));
|
return PROVIDER_API_PORTS.at(static_cast<std::size_t>(prov));
|
||||||
}
|
}
|
||||||
|
|
||||||
auto app_config::get_data_directory() -> std::string {
|
auto app_config::get_root_data_directory() -> std::string {
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
auto data_directory = utils::path::combine(
|
auto data_directory = utils::path::combine(
|
||||||
utils::get_local_app_data_directory(), {
|
utils::get_local_app_data_directory(), {
|
||||||
@ -724,7 +724,7 @@ auto app_config::get_data_directory() -> std::string {
|
|||||||
|
|
||||||
auto app_config::default_data_directory(const provider_type &prov)
|
auto app_config::default_data_directory(const provider_type &prov)
|
||||||
-> std::string {
|
-> std::string {
|
||||||
return utils::path::combine(app_config::get_data_directory(),
|
return utils::path::combine(app_config::get_root_data_directory(),
|
||||||
{
|
{
|
||||||
REPERTORY_DATA_NAME,
|
REPERTORY_DATA_NAME,
|
||||||
app_config::get_provider_name(prov),
|
app_config::get_provider_name(prov),
|
||||||
@ -743,6 +743,7 @@ auto app_config::default_remote_api_port(const provider_type &prov)
|
|||||||
};
|
};
|
||||||
return PROVIDER_REMOTE_PORTS.at(static_cast<std::size_t>(prov));
|
return PROVIDER_REMOTE_PORTS.at(static_cast<std::size_t>(prov));
|
||||||
}
|
}
|
||||||
|
|
||||||
auto app_config::default_rpc_port(const provider_type &prov) -> std::uint16_t {
|
auto app_config::default_rpc_port(const provider_type &prov) -> std::uint16_t {
|
||||||
static const std::array<std::uint16_t,
|
static const std::array<std::uint16_t,
|
||||||
static_cast<std::size_t>(provider_type::unknown)>
|
static_cast<std::size_t>(provider_type::unknown)>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user