fixes: Remove sync scheduler; Use ndn::time; Passed all the test cases
Change-Id: I50e8cd94f71f463793e4d19d5bf65e190cac6e59
diff --git a/src/sync-interest-container.h b/src/sync-interest-container.h
index b998b18..742f053 100644
--- a/src/sync-interest-container.h
+++ b/src/sync-interest-container.h
@@ -23,6 +23,8 @@
#ifndef SYNC_INTEREST_CONTAINER_H
#define SYNC_INTEREST_CONTAINER_H
+#include <ndn-cpp-dev/util/time.hpp>
+
#include "sync-digest.h"
#include <boost/multi_index_container.hpp>
@@ -45,15 +47,15 @@
Interest (DigestConstPtr digest, const std::string &name, bool unknown=false)
: m_digest (digest)
, m_name (name)
- , m_time (TIME_NOW)
+ , m_time (ndn::time::now())
, m_unknown (unknown)
{
}
- DigestConstPtr m_digest;
- std::string m_name;
- TimeAbsolute m_time;
- bool m_unknown;
+ DigestConstPtr m_digest;
+ std::string m_name;
+ ndn::time::Point m_time;
+ bool m_unknown;
};
/// @cond include_hidden
@@ -85,7 +87,7 @@
mi::ordered_non_unique<
mi::tag<timed>,
- BOOST_MULTI_INDEX_MEMBER(Interest, TimeAbsolute, m_time)
+ BOOST_MULTI_INDEX_MEMBER(Interest, ndn::time::Point, m_time)
>
>
>