mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-23 03:38:53 +00:00
p2p: use size_t for arbitrary counters instead of uint8_t
This commit is contained in:
parent
46d6fa35c9
commit
fe568db83d
@ -1856,8 +1856,8 @@ namespace nodetool
|
|||||||
template<class t_payload_net_handler>
|
template<class t_payload_net_handler>
|
||||||
bool node_server<t_payload_net_handler>::has_too_many_connections(const epee::net_utils::network_address &address)
|
bool node_server<t_payload_net_handler>::has_too_many_connections(const epee::net_utils::network_address &address)
|
||||||
{
|
{
|
||||||
const uint8_t max_connections = 1;
|
const size_t max_connections = 1;
|
||||||
uint8_t count = 0;
|
size_t count = 0;
|
||||||
|
|
||||||
m_net_server.get_config_object().foreach_connection([&](const p2p_connection_context& cntxt)
|
m_net_server.get_config_object().foreach_connection([&](const p2p_connection_context& cntxt)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user