From bacfaae8baf42083f90fbbc954d52070726b27b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Wo=CC=81jcik?= <3044353+pwojcikdev@users.noreply.github.com> Date: Fri, 10 Nov 2023 19:49:57 +0100 Subject: [PATCH] Adjust `uniquer` class container info reporting --- nano/lib/uniquer.hpp | 2 +- nano/rpc_test/rpc.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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");