diff --git a/nano/node/active_transactions.cpp b/nano/node/active_transactions.cpp index 29cdbf3c91..a66f69119d 100644 --- a/nano/node/active_transactions.cpp +++ b/nano/node/active_transactions.cpp @@ -324,7 +324,7 @@ void nano::active_transactions::cleanup_election (nano::unique_lock lock_a.unlock (); - node.stats.inc (completion_type (*election), nano::to_stat_detail (election->behavior ())); + node.stats.inc (completion_type (*election), to_stat_detail (election->behavior ())); vacancy_update (); @@ -461,7 +461,7 @@ nano::election_insertion_result nano::active_transactions::insert (std::shared_p { cache->fill (result.election); } - node.stats.inc (nano::stat::type::active_started, nano::to_stat_detail (election_behavior_a)); + node.stats.inc (nano::stat::type::active_started, to_stat_detail (election_behavior_a)); node.observers.active_started.notify (hash); vacancy_update (); } diff --git a/nano/node/network.cpp b/nano/node/network.cpp index d02026deac..9f33370cc1 100644 --- a/nano/node/network.cpp +++ b/nano/node/network.cpp @@ -468,7 +468,7 @@ class network_message_visitor : public nano::message_visitor void nano::network::process_message (nano::message const & message, std::shared_ptr const & channel) { - node.stats.inc (nano::stat::type::message, nano::to_stat_detail (message.header.type), nano::stat::dir::in); + node.stats.inc (nano::stat::type::message, to_stat_detail (message.header.type), nano::stat::dir::in); network_message_visitor visitor{ node, channel }; message.visit (visitor); diff --git a/nano/node/transport/channel.cpp b/nano/node/transport/channel.cpp index 4649726786..99581f4712 100644 --- a/nano/node/transport/channel.cpp +++ b/nano/node/transport/channel.cpp @@ -17,7 +17,7 @@ nano::transport::channel::channel (nano::node & node_a) : void nano::transport::channel::send (nano::message & message_a, std::function const & callback_a, nano::transport::buffer_drop_policy drop_policy_a, nano::transport::traffic_type traffic_type) { auto buffer (message_a.to_shared_const_buffer ()); - auto detail = nano::to_stat_detail (message_a.header.type); + auto detail = to_stat_detail (message_a.header.type); auto is_droppable_by_limiter = (drop_policy_a == nano::transport::buffer_drop_policy::limiter); auto should_pass (node.outbound_limiter.should_pass (buffer.size (), to_bandwidth_limit_type (traffic_type))); if (!is_droppable_by_limiter || should_pass) diff --git a/nano/node/transport/inproc.cpp b/nano/node/transport/inproc.cpp index a015a2fdbc..b07bd0d35f 100644 --- a/nano/node/transport/inproc.cpp +++ b/nano/node/transport/inproc.cpp @@ -78,7 +78,7 @@ void nano::transport::inproc::channel::send_buffer (nano::shared_const_buffer co // process message { - node.stats.inc (nano::stat::type::message, nano::to_stat_detail (message_a->header.type), nano::stat::dir::in); + node.stats.inc (nano::stat::type::message, to_stat_detail (message_a->header.type), nano::stat::dir::in); // create an inbound message visitor class to handle incoming messages message_visitor_inbound visitor{ destination.network.inbound, remote_channel }; diff --git a/nano/node/transport/tcp_server.cpp b/nano/node/transport/tcp_server.cpp index dc0158e989..af163701a5 100644 --- a/nano/node/transport/tcp_server.cpp +++ b/nano/node/transport/tcp_server.cpp @@ -431,7 +431,7 @@ bool nano::transport::tcp_server::process_message (std::unique_ptrstats.inc (nano::stat::type::tcp_server, nano::to_stat_detail (message->header.type), nano::stat::dir::in); + node->stats.inc (nano::stat::type::tcp_server, to_stat_detail (message->header.type), nano::stat::dir::in); debug_assert (is_undefined_connection () || is_realtime_connection () || is_bootstrap_connection ());