| 94 | } |
| 95 | |
| 96 | void ProtectOutboundConnections(std::vector<NodeEvictionCandidate>& eviction_candidates) |
| 97 | { |
| 98 | eviction_candidates.erase(std::remove_if(eviction_candidates.begin(), eviction_candidates.end(), |
| 99 | [](NodeEvictionCandidate const& n) { |
| 100 | return n.m_conn_type != ConnectionType::INBOUND; |
| 101 | }), |
| 102 | eviction_candidates.end()); |
| 103 | } |
| 104 | |
| 105 | void ProtectEvictionCandidatesByRatio(std::vector<NodeEvictionCandidate>& eviction_candidates) |
| 106 | { |
no test coverage detected