diff --git a/include/xrpl/basics/TaggedCache.h b/include/xrpl/basics/TaggedCache.h index 56f653fab0..0037ce2b1e 100644 --- a/include/xrpl/basics/TaggedCache.h +++ b/include/xrpl/basics/TaggedCache.h @@ -130,7 +130,7 @@ public: @param replaceCallback Function that decides if cache should be replaced @return First item: `true` If the key already existed; Second item: The - in the cache. + canonicalized item. */ template std::pair diff --git a/include/xrpl/basics/TaggedCache.ipp b/include/xrpl/basics/TaggedCache.ipp index 7ee7993ec3..6ff5eaee5a 100644 --- a/include/xrpl/basics/TaggedCache.ipp +++ b/include/xrpl/basics/TaggedCache.ipp @@ -501,8 +501,7 @@ TaggedCache< key_type const& key, SharedPointerType const& data) { - auto [alreadyExists, _] = canonicalize( - key, data, []() { return true; }); + auto [alreadyExists, _] = canonicalize(key, data, []() { return true; }); return alreadyExists; } @@ -527,7 +526,8 @@ TaggedCache< Mutex>:: canonicalize_replace_client(key_type const& key, SharedPointerType& data) { - auto [alreadyExists, itemInCache] = canonicalize(key, data, []() { return false; }); + auto [alreadyExists, itemInCache] = + canonicalize(key, data, []() { return false; }); data = itemInCache; return alreadyExists; }