aboutsummaryrefslogtreecommitdiffstats
path: root/libtransport/src/utils/content_store.h
diff options
context:
space:
mode:
Diffstat (limited to 'libtransport/src/utils/content_store.h')
-rw-r--r--libtransport/src/utils/content_store.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/libtransport/src/utils/content_store.h b/libtransport/src/utils/content_store.h
index 03ce76f42..ecd62cc2c 100644
--- a/libtransport/src/utils/content_store.h
+++ b/libtransport/src/utils/content_store.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 Cisco and/or its affiliates.
+ * Copyright (c) 2021 Cisco and/or its affiliates.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
@@ -35,8 +35,7 @@ using Name = transport::core::Name;
using ContentObject = transport::core::ContentObject;
using Interest = transport::core::Interest;
-typedef std::pair<std::shared_ptr<ContentObject>,
- std::chrono::steady_clock::time_point>
+typedef std::pair<std::shared_ptr<ContentObject>, utils::SteadyTime::TimePoint>
ObjectTimeEntry;
typedef std::pair<ObjectTimeEntry,
std::list<std::reference_wrapper<const Name>>::iterator>
@@ -52,7 +51,7 @@ class ContentStore {
void insert(const std::shared_ptr<ContentObject> &content_object);
- const std::shared_ptr<ContentObject> find(const Interest &interest);
+ std::shared_ptr<ContentObject> find(const Name &name);
void erase(const Name &exact_name);
@@ -73,4 +72,4 @@ class ContentStore {
mutable utils::SpinLock cs_mutex_;
};
-} // end namespace utils \ No newline at end of file
+} // end namespace utils