Skip to content

Commit

Permalink
clang tidy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ErakhtinB committed Dec 26, 2024
1 parent 35daeb7 commit dd28c19
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/network/impl/synchronizer_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1159,8 +1159,7 @@ namespace kagome::network {
}

std::vector<libp2p::peer::PeerId> active_peers;
for (auto it = peers.begin(); it != peers.end(); ++it) {
const auto &peer_id = *it;
for (const auto &peer_id : peers) {
if (busy_peers_.find(peer_id) == busy_peers_.end()) {
active_peers.push_back(peer_id);
}
Expand All @@ -1172,8 +1171,7 @@ namespace kagome::network {
> static_cast<size_t>(max_parallel_downloads_)) {
active_peers.pop_back();
}
for (auto it = active_peers.begin(); it != active_peers.end(); ++it) {
auto &peer_id = *it;
for (const auto& peer_id : active_peers) {
busy_peers_.emplace(peer_id);
peers.erase(peer_id);
auto handler = [wp{weak_from_this()}, peer_id](const auto &res) {
Expand Down

0 comments on commit dd28c19

Please sign in to comment.