Skip to content

Commit 6bd804c

Browse files
author
Pierre-Etienne Bougue
committed
Kraken config: improve naming consistency
1 parent 33b0352 commit 6bd804c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/kraken/configuration.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ po::options_description get_options_description(const boost::optional<std::strin
9797
("BROKER.total_retrieving_timeout", po::value<int>()->default_value(120000), "max total duration the worker is going to spend when retrieving messages, in milliseconds")
9898
("BROKER.prefetch_timeout", po::value<int>()->default_value(100), "RabbitMQ timeout for prefetched messages (maintenance/RT) in millisecond")
9999
("BROKER.prefetch_message_count", po::value<int>()->default_value(100), "max number of messages (maintenance/RT) prefetched from RabbitMQ")
100-
("BROKER.broker_prefetch_total_retrieving_timeout", po::value<int>()->default_value(10000), "max total duration the worker is going to spend when retrieving prefetched messages, in milliseconds")
100+
("BROKER.prefetch_total_retrieving_timeout", po::value<int>()->default_value(10000), "max total duration the worker is going to spend when retrieving prefetched messages, in milliseconds")
101101
("BROKER.sleeptime", po::value<int>()->default_value(1), "sleeptime for maintenance worker in second")
102102
("BROKER.reconnect_wait", po::value<int>()->default_value(1), "Wait duration between connection attempts to rabbitmq, in seconds")
103103
("BROKER.queue", po::value<std::string>(), "rabbitmq's queue name to be bound")
@@ -254,7 +254,7 @@ uint16_t Configuration::broker_prefetch_message_count() const {
254254
}
255255

256256
int Configuration::broker_prefetch_total_retrieving_timeout() const {
257-
return vm["BROKER.broker_prefetch_total_retrieving_timeout"].as<int>();
257+
return vm["BROKER.prefetch_total_retrieving_timeout"].as<int>();
258258
}
259259

260260
int Configuration::broker_sleeptime() const {

0 commit comments

Comments
 (0)