face: replace isOnDemand with FacePersistency
Change-Id: Ie6995b2d03bbb90faad158de2b055f72dd9ba73d
Refs: #2989
diff --git a/daemon/face/face.cpp b/daemon/face/face.cpp
index 0974cf2..0dd8169 100644
--- a/daemon/face/face.cpp
+++ b/daemon/face/face.cpp
@@ -34,7 +34,7 @@
, m_remoteUri(remoteUri)
, m_localUri(localUri)
, m_isLocal(isLocal)
- , m_isOnDemand(false)
+ , m_persistency(ndn::nfd::FACE_PERSISTENCY_PERSISTENT)
, m_isMultiAccess(isMultiAccess)
, m_isFailed(false)
{
@@ -102,8 +102,7 @@
.setLocalUri(getLocalUri().toString())
.setFaceScope(isLocal() ? ndn::nfd::FACE_SCOPE_LOCAL
: ndn::nfd::FACE_SCOPE_NON_LOCAL)
- .setFacePersistency(isOnDemand() ? ndn::nfd::FACE_PERSISTENCY_ON_DEMAND
- : ndn::nfd::FACE_PERSISTENCY_PERSISTENT)
+ .setFacePersistency(getPersistency())
.setLinkType(isMultiAccess() ? ndn::nfd::LINK_TYPE_MULTI_ACCESS
: ndn::nfd::LINK_TYPE_POINT_TO_POINT);
}