diff --git a/nano/lib/uniquer.hpp b/nano/lib/uniquer.hpp index 11548dc5b5..7564732614 100644 --- a/nano/lib/uniquer.hpp +++ b/nano/lib/uniquer.hpp @@ -55,7 +55,7 @@ class uniquer final std::lock_guard guard{ mutex }; auto composite = std::make_unique (name); - composite->add_component (std::make_unique (container_info{ "values", values.size (), sizeof (Value) })); + composite->add_component (std::make_unique (container_info{ "cache", values.size (), sizeof (Value) })); return composite; } diff --git a/nano/rpc_test/rpc.cpp b/nano/rpc_test/rpc.cpp index 5416292cb0..f57569ac06 100644 --- a/nano/rpc_test/rpc.cpp +++ b/nano/rpc_test/rpc.cpp @@ -5810,7 +5810,7 @@ TEST (rpc, memory_stats) { auto response (wait_response (system, rpc_ctx, request)); - ASSERT_EQ (response.get_child ("node").get_child ("vote_uniquer").get_child ("votes").get ("count"), "1"); + ASSERT_EQ (response.get_child ("node").get_child ("vote_uniquer").get_child ("cache").get ("count"), "1"); } request.put ("type", "database");