mgmt: migrate to new Dispatcher API for control commands
Change-Id: Iaba68dde879fbb562e13ef383e0b753174708baa
diff --git a/daemon/mgmt/strategy-choice-manager.cpp b/daemon/mgmt/strategy-choice-manager.cpp
index e31ae76..1b4628e 100644
--- a/daemon/mgmt/strategy-choice-manager.cpp
+++ b/daemon/mgmt/strategy-choice-manager.cpp
@@ -42,12 +42,15 @@
: ManagerBase("strategy-choice", dispatcher, authenticator)
, m_table(strategyChoice)
{
- registerCommandHandler<ndn::nfd::StrategyChoiceSetCommand>("set",
- [this] (auto&&, auto&&, auto&&... args) { setStrategy(std::forward<decltype(args)>(args)...); });
- registerCommandHandler<ndn::nfd::StrategyChoiceUnsetCommand>("unset",
- [this] (auto&&, auto&&, auto&&... args) { unsetStrategy(std::forward<decltype(args)>(args)...); });
- registerStatusDatasetHandler("list",
- [this] (auto&&, auto&&, auto&&... args) { listChoices(std::forward<decltype(args)>(args)...); });
+ registerCommandHandler<ndn::nfd::StrategyChoiceSetCommand>([this] (auto&&, auto&&, auto&&... args) {
+ setStrategy(std::forward<decltype(args)>(args)...);
+ });
+ registerCommandHandler<ndn::nfd::StrategyChoiceUnsetCommand>([this] (auto&&, auto&&, auto&&... args) {
+ unsetStrategy(std::forward<decltype(args)>(args)...);
+ });
+ registerStatusDatasetHandler("list", [this] (auto&&, auto&&, auto&&... args) {
+ listChoices(std::forward<decltype(args)>(args)...);
+ });
}
void