Skip to content

Commit

Permalink
clang tidy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ErakhtinB committed Dec 27, 2024
1 parent ab41109 commit 0a9f951
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/network/impl/synchronizer_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,11 +341,11 @@ namespace kagome::network {
return true;
});
std::ranges::shuffle(active_peers, random_gen_);
for (auto it = active_peers.begin(); it != active_peers.end(); ++it) {
for (const auto &p_id : active_peers) {
if (selected_peers.size() >= max_parallel_downloads_) {
break;
}
selected_peers.push_back(*it);
selected_peers.push_back(p_id);
}
// Block is already enqueued
if (auto it = known_blocks_.find(block_info.hash);
Expand Down

0 comments on commit 0a9f951

Please sign in to comment.