NethermindEth / juno

Starknet client implementation.
https://juno.nethermind.io
Apache License 2.0
402 stars 170 forks source link

Refactor randomPeer function to use local variable #2158

Closed AnkushinDaniil closed 2 months ago

AnkushinDaniil commented 2 months ago

The randomPeer function in syncService has been refactored to use a local variable store instead of accessing s.host.Peerstore() multiple times. This reduces unnecessary function calls.

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 78.34%. Comparing base (1ff5e2c) to head (511618e). Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2158 +/- ## ========================================== - Coverage 78.38% 78.34% -0.05% ========================================== Files 100 100 Lines 9220 9220 ========================================== - Hits 7227 7223 -4 - Misses 1354 1355 +1 - Partials 639 642 +3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.