Fix naming inconsistency between code and markdown
This commit is contained in:
@@ -82,7 +82,7 @@ void ConfigParser::parse_commit_config(const auto &toml_data,
|
||||
parse_section(toml_data, "commit", [&](const auto &commit) {
|
||||
parse_field(commit, "min_request_id_length", config.min_request_id_length);
|
||||
parse_duration_field(commit, "request_id_retention_hours",
|
||||
config.request_id_retention_time);
|
||||
config.request_id_retention_hours);
|
||||
parse_field(commit, "request_id_retention_versions",
|
||||
config.request_id_retention_versions);
|
||||
});
|
||||
@@ -97,4 +97,4 @@ void ConfigParser::parse_subscription_config(const auto &toml_data,
|
||||
});
|
||||
}
|
||||
|
||||
} // namespace weaseldb
|
||||
} // namespace weaseldb
|
||||
|
||||
@@ -15,7 +15,7 @@ struct ServerConfig {
|
||||
|
||||
struct CommitConfig {
|
||||
size_t min_request_id_length = 20; // Minimum length for request_id entropy
|
||||
std::chrono::hours request_id_retention_time{
|
||||
std::chrono::hours request_id_retention_hours{
|
||||
24}; // How long to keep request IDs
|
||||
size_t request_id_retention_versions =
|
||||
100000000; // Min versions to retain request IDs
|
||||
|
||||
@@ -51,7 +51,7 @@ int main(int argc, char *argv[]) {
|
||||
std::cout << "Min request ID length: " << config->commit.min_request_id_length
|
||||
<< std::endl;
|
||||
std::cout << "Request ID retention: "
|
||||
<< config->commit.request_id_retention_time.count() << " hours"
|
||||
<< config->commit.request_id_retention_hours.count() << " hours"
|
||||
<< std::endl;
|
||||
std::cout << "Subscription buffer size: "
|
||||
<< config->subscription.max_buffer_size_bytes << " bytes"
|
||||
|
||||
Reference in New Issue
Block a user