docs: Documentation update
Change-Id: I6f916eb822a59e980e8fb1134886c3431755119c
diff --git a/examples/ndn-load-balancer.cpp b/examples/ndn-load-balancer.cpp
index 46ea740..8db76ce 100644
--- a/examples/ndn-load-balancer.cpp
+++ b/examples/ndn-load-balancer.cpp
@@ -85,6 +85,11 @@
// Install NDN applications
std::string prefix = "/ucla/hello";
+ // Install random-load-balancer forwarding strategy in
+ // node UCLA-HUB
+ StrategyChoiceHelper::Install<nfd::fw::RandomLoadBalancerStrategy>(Names::Find<Node>("UCLA-HUB"),
+ prefix);
+
AppHelper consumerHelper("ns3::ndn::ConsumerCbr");
consumerHelper.SetPrefix(prefix);
consumerHelper.SetAttribute("Frequency", StringValue("100")); // 100 interests a second
@@ -96,12 +101,6 @@
producerHelper.Install(producer1);
producerHelper.Install(producer2);
- // Install random-load-balancer forwarding strategy in
- // node UCLA-HUB
- StrategyChoiceHelper strategyChoiceHelper;
- strategyChoiceHelper.Install<nfd::fw::RandomLoadBalancerStrategy>(Names::Find<Node>("UCLA-HUB"),
- prefix);
-
// Add /prefix origins to ndn::GlobalRouter
ndnGlobalRoutingHelper.AddOrigins(prefix, producer1);
ndnGlobalRoutingHelper.AddOrigins(prefix, producer2);