Remove use of deprecated code
Change-Id: I197471c48c54c5671bb8f641c4332b3ac7893824
Refs: #3988
diff --git a/nsync/sync-logic.cc b/nsync/sync-logic.cc
index 900c424..b1482cf 100644
--- a/nsync/sync-logic.cc
+++ b/nsync/sync-logic.cc
@@ -218,7 +218,7 @@
}
void
-SyncLogic::onSyncData(const ndn::Interest& interest, Data& data)
+SyncLogic::onSyncData(const ndn::Interest& interest, const Data& data)
{
OnDataValidated onValidated = bind(&SyncLogic::onSyncDataValidated, this, _1);
OnDataValidationFailed onValidationFailed = bind(&SyncLogic::onSyncDataValidationFailed, this, _1);
@@ -624,6 +624,7 @@
m_face->expressInterest(interest,
bind(&SyncLogic::onSyncData, this, _1, _2),
+ bind(&SyncLogic::onSyncTimeout, this, _1), // Nack
bind(&SyncLogic::onSyncTimeout, this, _1));
}
@@ -652,6 +653,7 @@
m_face->expressInterest(interest,
bind(&SyncLogic::onSyncData, this, _1, _2),
+ bind(&SyncLogic::onSyncTimeout, this, _1), // Nack
bind(&SyncLogic::onSyncTimeout, this, _1));
}