util: eliminate selector usage in SegmentFetcher
refs #4555
Change-Id: I61c28a916ca92d30538bfc7a917f0c44c3854722
diff --git a/src/util/segment-fetcher.cpp b/src/util/segment-fetcher.cpp
index de177fd..cca049e 100644
--- a/src/util/segment-fetcher.cpp
+++ b/src/util/segment-fetcher.cpp
@@ -130,7 +130,7 @@
shared_ptr<SegmentFetcher> self)
{
Interest interest(baseInterest);
- interest.setChildSelector(1);
+ interest.setCanBePrefix(true);
interest.setMustBeFresh(true);
interest.setInterestLifetime(m_options.interestLifetime);
if (isRetransmission) {
@@ -197,7 +197,7 @@
for (const auto& segment : segmentsToRequest) {
Interest interest(origInterest); // to preserve Interest elements
interest.refreshNonce();
- interest.setChildSelector(0);
+ interest.setCanBePrefix(false);
interest.setMustBeFresh(false);
Name interestName(m_versionedDataName);