Skip to content

Commit

Permalink
Merge branch 'master' into feature/fast-pruner-start
Browse files Browse the repository at this point in the history
  • Loading branch information
Harrm authored Aug 28, 2023
2 parents c5f4dd8 + 1bb9514 commit c7aa8f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/common/lru_cache.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ namespace kagome {

template <typename ValueArg>
std::shared_ptr<const Value> put(const Key &key, ValueArg &&value) {
LockGuard lg(*this);
static_assert(std::is_convertible_v<ValueArg, Value>
|| std::is_constructible_v<ValueArg, Value>);
if (cache_.size() >= kMaxSize) {
Expand Down

0 comments on commit c7aa8f8

Please sign in to comment.