Rename delete_connections to delete_out_connections

This rename is needed so that delete_in_connections can be added.
This commit is contained in:
Erik de Castro Lopo
2018-01-20 11:57:02 +11:00
parent b927c0fc7a
commit d609a2c164
3 changed files with 3 additions and 3 deletions

View File

@@ -1598,7 +1598,7 @@ namespace cryptonote
size_t n_delete = (n_connections > req.out_peers) ? n_connections - req.out_peers : 0;
m_p2p.m_config.m_net_config.max_out_connection_count = req.out_peers;
if (n_delete)
m_p2p.delete_connections(n_delete);
m_p2p.delete_out_connections(n_delete);
res.status = CORE_RPC_STATUS_OK;
return true;
}