Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

do not comment out valid config item: database-cache-size #860

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions programs/psinode/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1439,8 +1439,9 @@ void to_config(const PsinodeConfig& config, ConfigFile& file)
if (!config.tls.trustfiles.empty())
{
file.set(
"", "tls-trustfile", config.tls.trustfiles, [](std::string_view text)
{ return std::string(text); }, "A file containing trusted certificate authorities");
"", "tls-trustfile", config.tls.trustfiles,
[](std::string_view text) { return std::string(text); },
"A file containing trusted certificate authorities");
}
#endif
if (!config.services.empty())
Expand All @@ -1451,8 +1452,9 @@ void to_config(const PsinodeConfig& config, ConfigFile& file)
services.push_back(to_string(service));
}
file.set(
"", "service", services, [](std::string_view text)
{ return service_from_string(text).host; }, "Native service root directory");
"", "service", services,
[](std::string_view text) { return service_from_string(text).host; },
"Native service root directory");
}
if (!std::holds_alternative<http::admin_none>(config.admin))
{
Expand Down Expand Up @@ -1480,6 +1482,7 @@ void to_config(const PsinodeConfig& config, ConfigFile& file)
// private keys.
file.keep("", "key");
file.keep("", "leeway");
file.keep("", "database-cache-size");
//
to_config(config.loggers, file);
}
Expand Down
Loading