Follow ndn::Scheduler API changes
Switch from ndn::EventId to ndn::scheduler::EventId
and simplify some code.
Refs: #4883
Change-Id: Ifbd3b00da441ca0a277900265f8f6e31fdcebf2a
diff --git a/src/lsa-segment-storage.cpp b/src/lsa-segment-storage.cpp
index 830906d..e7d6f2d 100644
--- a/src/lsa-segment-storage.cpp
+++ b/src/lsa-segment-storage.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
-/**
- * Copyright (c) 2014-2018, The University of Memphis,
+/*
+ * Copyright (c) 2014-2019, The University of Memphis,
* Regents of the University of California,
* Arizona Board of Regents.
*
@@ -140,10 +140,8 @@
{
NLSR_LOG_TRACE("Scheduling LSA segment deletion for "
<< lsaSegmentsKey << " in: " << expirationTime);
- m_scheduler.scheduleEvent(expirationTime,
- [lsaSegmentsKey, this] {
- m_lsaSegments.erase(lsaSegmentsKey);
- });
+ m_scheduler.schedule(expirationTime,
+ [lsaSegmentsKey, this] { m_lsaSegments.erase(lsaSegmentsKey); });
}
} // namespace nlsr