fw: introduce afterContentStoreHit strategy trigger
Change-Id: I71ca9e21467d2296203eb9686bff7647b1140271
refs: #4290
diff --git a/daemon/fw/forwarder.cpp b/daemon/fw/forwarder.cpp
index cb7ac9d..93be2e9 100644
--- a/daemon/fw/forwarder.cpp
+++ b/daemon/fw/forwarder.cpp
@@ -213,11 +213,12 @@
pitEntry->isSatisfied = true;
pitEntry->dataFreshnessPeriod = data.getFreshnessPeriod();
- // finalize Interest
- this->onInterestFinalize(pitEntry);
+ // set PIT expiry timer to now
+ this->setExpiryTimer(pitEntry, 0_ms);
- // goto outgoing Data pipeline
- this->onOutgoingData(data, *const_pointer_cast<Face>(inFace.shared_from_this()));
+ // dispatch to strategy: after Content Store hit
+ this->dispatchToStrategy(*pitEntry,
+ [&] (fw::Strategy& strategy) { strategy.afterContentStoreHit(pitEntry, inFace, data); });
}
void