use DummyClientFace from ndn-cxx
Change-Id: I82bd668662a790d6e336bbcad9a6357606323658
diff --git a/src/validator.cpp b/src/validator.cpp
index 721b311..8bd4a4a 100644
--- a/src/validator.cpp
+++ b/src/validator.cpp
@@ -92,17 +92,14 @@
NDNS_LOG_TRACE("[* ?? *] verify data: " << data.getName() << ". KeyLocator: "
<< data.getSignature().getKeyLocator().getName());
ValidatorConfig::validate(data,
- [this, onValidated](const shared_ptr<const Data>& data)
- // onValidated here cannot use reference, since this is non-block
- {
- onValidated(data);
+ [this, onValidated] (const shared_ptr<const Data>& data) {
this->onDataValidated(data);
+ onValidated(data);
},
- [this, onValidationFailed](const shared_ptr<const Data>& data,
- const std::string& str)
- {
- onValidationFailed(data, str);
+ [this, onValidationFailed] (const shared_ptr<const Data>& data,
+ const std::string& str) {
this->onDataValidationFailed(data, str);
+ onValidationFailed(data, str);
}
);
}