Skip to content

Commit

Permalink
Adjust uniquer class container info reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev committed Nov 10, 2023
1 parent 0791541 commit bacfaae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nano/lib/uniquer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class uniquer final
std::lock_guard guard{ mutex };

auto composite = std::make_unique<container_info_composite> (name);
composite->add_component (std::make_unique<container_info_leaf> (container_info{ "values", values.size (), sizeof (Value) }));
composite->add_component (std::make_unique<container_info_leaf> (container_info{ "cache", values.size (), sizeof (Value) }));
return composite;
}

Expand Down
2 changes: 1 addition & 1 deletion nano/rpc_test/rpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::string> ("count"), "1");
ASSERT_EQ (response.get_child ("node").get_child ("vote_uniquer").get_child ("cache").get<std::string> ("count"), "1");
}

request.put ("type", "database");
Expand Down

0 comments on commit bacfaae

Please sign in to comment.