forked from premiere/premiere-libtorrent
Fix dht counters.
This commit is contained in:
parent
8b6b8240c1
commit
c0d20d7708
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue