chunks+ping: follow ndn::Scheduler API changes
Refs: #4883
Change-Id: I8aa48fe4f0613f529763f2efaf799c5db48a0b2c
diff --git a/tools/chunks/catchunks/data-fetcher.cpp b/tools/chunks/catchunks/data-fetcher.cpp
index 7600016..43d5076 100644
--- a/tools/chunks/catchunks/data-fetcher.cpp
+++ b/tools/chunks/catchunks/data-fetcher.cpp
@@ -126,13 +126,13 @@
}
case lp::NackReason::CONGESTION: {
time::milliseconds backoffTime(static_cast<uint64_t>(std::pow(2, m_nCongestionRetries)));
- if (backoffTime > MAX_CONGESTION_BACKOFF_TIME)
+ if (backoffTime > MAX_CONGESTION_BACKOFF_TIME) {
backoffTime = MAX_CONGESTION_BACKOFF_TIME;
- else
+ }
+ else {
m_nCongestionRetries++;
-
- m_scheduler.scheduleEvent(backoffTime, bind(&DataFetcher::expressInterest, this,
- newInterest, self));
+ }
+ m_scheduler.schedule(backoffTime, [=] { expressInterest(newInterest, self); });
break;
}
default: {