Skip to content

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

Merged
jansegre merged 1 commit intomasterfrom
refactor/p2p-rename-peer-id
Aug 22, 2024
Merged

refactor(p2p): rename peer_id.PeerId to peer.Peer#1113
jansegre merged 1 commit intomasterfrom
refactor/p2p-rename-peer-id

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 glevco and msbrogli August 19, 2024 18:38
@jansegre jansegre self-assigned this Aug 19, 2024
@github-actions
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

@codecov
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.

@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
@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