Merge pull request #154 from thomas-yuan/counter

Fix dht counters.
This commit is contained in:
Arvid Norberg 2015-09-11 21:45:39 -04:00
commit dc91e7f507
2 changed files with 3 additions and 1 deletions

View File

@ -256,6 +256,8 @@ bool obfuscated_get_peers::invoke(observer_ptr o)
, o->target_ep());
}
m_node.stats_counters().inc_stats_counter(counters::dht_get_peers_out);
return m_node.m_rpc.invoke(e, o->target_ep(), o);
}

View File

@ -62,7 +62,7 @@ bool bootstrap::invoke(observer_ptr o)
// e["q"] = "find_node";
// a["target"] = target().to_string();
m_node.stats_counters().inc_stats_counter(counters::dht_find_node_out);
m_node.stats_counters().inc_stats_counter(counters::dht_get_peers_out);
return m_node.m_rpc.invoke(e, o->target_ep(), o);
}