Closed AnkushinDaniil closed 2 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 78.37%. Comparing base (
6735ed5
) to head (622f365
). Report is 1 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
While you're at it, there's a similar code pattern in the p2p/sync.go
. That can be refactored too.
https://github.com/NethermindEth/juno/blob/main/p2p/sync.go#L632-L649
As @derrix060 mentioned, we need to avoid iterating peers twice.