Skip to content

Commit

Permalink
Remove config option rebuild_subscription_tree_interval_seconds
Browse files Browse the repository at this point in the history
This was temporarily implemented as work-around. There is now a better
implementation.
  • Loading branch information
halfgaar committed Dec 13, 2023
1 parent 2c6367a commit 2a8052a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
15 changes: 0 additions & 15 deletions configfileparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -898,21 +898,6 @@ void ConfigFileParser::loadFile(bool test)

tmpSettings.retainedMessagesDeliveryLimit = newVal;
}

if (testKeyValidity(key, "rebuild_subscription_tree_interval_seconds", validKeys))
{
const uint32_t minVal = 900;
const uint32_t newVal = std::stoul(value);

if (newVal < minVal)
{
std::ostringstream oss;
oss << "Value '" << value << "' for '" << key << "' is too low. It must be at least " << minVal;
throw ConfigFileException(oss.str());
}

tmpSettings.rebuildSubscriptionTreeInterval = std::chrono::seconds(newVal);
}
}
}
catch (std::invalid_argument &ex) // catch for the stoi()
Expand Down
1 change: 0 additions & 1 deletion settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ class Settings
uint maxQosBytesPendingPerClient = 65536;
bool willsEnabled = true;
int retainedMessagesDeliveryLimit = 2048;
std::chrono::seconds rebuildSubscriptionTreeInterval = std::chrono::minutes(30);
RetainedMessagesMode retainedMessagesMode = RetainedMessagesMode::Enabled;
SharedSubscriptionTargeting sharedSubscriptionTargeting = SharedSubscriptionTargeting::RoundRobin;
std::list<std::shared_ptr<Listener>> listeners; // Default one is created later, when none are defined.
Expand Down

0 comments on commit 2a8052a

Please sign in to comment.