catchunks: pass versioned name to onDiscoverySuccess signal
refs: #4556
Change-Id: I599bafcf70647bd806236f87f24d7a22f73a3505
diff --git a/tools/chunks/catchunks/consumer.cpp b/tools/chunks/catchunks/consumer.cpp
index 0106629..e7f751e 100644
--- a/tools/chunks/catchunks/consumer.cpp
+++ b/tools/chunks/catchunks/consumer.cpp
@@ -45,8 +45,8 @@
m_nextToPrint = 0;
m_bufferedData.clear();
- m_discover->onDiscoverySuccess.connect([this] (const Data& data) {
- m_pipeline->run(data,
+ m_discover->onDiscoverySuccess.connect([this] (const Name& versionedName) {
+ m_pipeline->run(versionedName,
[this] (const Data& data) { handleData(data); },
[] (const std::string& msg) { NDN_THROW(std::runtime_error(msg)); });
});