Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(p2p): rename peer_id.PeerId to peer.Peer #1113

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

jansegre
Copy link
Member

Motivation

This is the first part of a series of refactors. This first refactor is a step to make using PeerId for only the id part of Peer.

Acceptance Criteria

  • rename hathor.p2p.peer_id.PeerId to hathor.p2p.peer.Peer

Checklist

  • If you are requesting a merge into master, confirm this code is production-ready and can be included in future releases as soon as it gets merged

@jansegre jansegre requested review from msbrogli and glevco August 19, 2024 18:38
@jansegre jansegre self-assigned this Aug 19, 2024
Copy link

github-actions bot commented Aug 19, 2024

🐰Bencher

ReportThu, August 22, 2024 at 14:04:50 UTC
Projecthathor-core
Branchrefactor/p2p-rename-peer-id
Testbedubuntu-22.04
Click to view all benchmark results
BenchmarkLatencyLatency Results
nanoseconds (ns) | (Δ%)
Latency Lower Boundary
nanoseconds (ns) | (%)
Latency Upper Boundary
nanoseconds (ns) | (%)
sync-v2 (up to 20000 blocks)✅ (view plot)101,385,519,316.14 (-1.46%)92,595,867,200.35 (91.33%)113,172,726,578.21 (89.58%)

Bencher - Continuous Benchmarking
View Public Perf Page
Docs | Repo | Chat | Help

Copy link

codecov bot commented Aug 19, 2024

Codecov Report

Attention: Patch coverage is 85.41667% with 7 lines in your changes missing coverage. Please review.

Project coverage is 84.91%. Comparing base (e85e4be) to head (f2c436f).
Report is 2 commits behind head on master.

Files Patch % Lines
hathor/p2p/peer.py 50.00% 4 Missing ⚠️
hathor/builder/builder.py 83.33% 1 Missing and 1 partial ⚠️
hathor/p2p/states/ready.py 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1113      +/-   ##
==========================================
+ Coverage   84.86%   84.91%   +0.05%     
==========================================
  Files         315      315              
  Lines       24071    24071              
  Branches     3647     3647              
==========================================
+ Hits        20427    20440      +13     
+ Misses       2931     2920      -11     
+ Partials      713      711       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

hathor/builder/builder.py Outdated Show resolved Hide resolved
hathor/builder/builder.py Outdated Show resolved Hide resolved
hathor/builder/builder.py Outdated Show resolved Hide resolved
hathor/builder/builder.py Outdated Show resolved Hide resolved
hathor/builder/cli_builder.py Outdated Show resolved Hide resolved
tests/unittest.py Outdated Show resolved Hide resolved
tests/unittest.py Outdated Show resolved Hide resolved
tests/unittest.py Outdated Show resolved Hide resolved
tests/unittest.py Outdated Show resolved Hide resolved
tests/p2p/netfilter/test_match.py Outdated Show resolved Hide resolved
@jansegre jansegre force-pushed the refactor/p2p-rename-peer-id branch 2 times, most recently from 945e51d to eb6c3d7 Compare August 20, 2024 21:06
@jansegre jansegre force-pushed the refactor/p2p-rename-peer-id branch from eb6c3d7 to f2c436f Compare August 22, 2024 14:02
@jansegre jansegre merged commit 2c817fd into master Aug 22, 2024
13 checks passed
@jansegre jansegre deleted the refactor/p2p-rename-peer-id branch August 22, 2024 14:43
@jansegre jansegre mentioned this pull request Oct 4, 2024
2 tasks
@jansegre jansegre mentioned this pull request Dec 11, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants