Skip to content

Commit

Permalink
Merge pull request #860 from gofractally/fix-commented-out-cache-size…
Browse files Browse the repository at this point in the history
…-config

do not comment out valid config item: database-cache-size
  • Loading branch information
James-Mart committed Sep 25, 2024
2 parents 4cde5f9 + a5c6b50 commit 98526b1
Showing 1 changed file with 7 additions and 4 deletions.
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

0 comments on commit 98526b1

Please sign in to comment.