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

p2p: adding peerstore #5576

Merged
merged 10 commits into from Jul 28, 2023
Merged

p2p: adding peerstore #5576

merged 10 commits into from Jul 28, 2023

Conversation

shiqizng
Copy link
Contributor

@shiqizng shiqizng commented Jul 18, 2023

This PR adds a peerstore module.

Info

Closes #5544

@shiqizng shiqizng self-assigned this Jul 18, 2023
@codecov
Copy link

codecov bot commented Jul 18, 2023

Codecov Report

Merging #5576 (a4ba318) into master (d316914) will increase coverage by 0.05%.
The diff coverage is 87.87%.

@@            Coverage Diff             @@
##           master    #5576      +/-   ##
==========================================
+ Coverage   55.79%   55.84%   +0.05%     
==========================================
  Files         446      448       +2     
  Lines       63418    63451      +33     
==========================================
+ Hits        35381    35437      +56     
+ Misses      25668    25651      -17     
+ Partials     2369     2363       -6     
Impacted Files Coverage Δ
network/p2p/peerstore/peerstore.go 86.66% <86.66%> (ø)
network/p2p/peerstore/utils.go 88.88% <88.88%> (ø)

... and 14 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@shiqizng shiqizng marked this pull request as ready for review July 18, 2023 15:31
@shiqizng shiqizng requested review from a team, cce and iansuvak July 18, 2023 15:31
Copy link
Contributor

@tzaffi tzaffi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very promising and clean!

I made some suggestions regarding adding test cases and wrapping errors from external libraries with our own messages to improve debuggability.

network/peerstore/peerstore_test.go Outdated Show resolved Hide resolved
network/peerstore/peerstore_test.go Outdated Show resolved Hide resolved
network/peerstore/peerstore.go Outdated Show resolved Hide resolved
network/peerstore/peerstore.go Outdated Show resolved Hide resolved
network/peerstore/peerstore.go Outdated Show resolved Hide resolved
network/peerstore/peerstore.go Outdated Show resolved Hide resolved
network/peerstore/peerstore.go Outdated Show resolved Hide resolved
network/peerstore/peerstore.go Outdated Show resolved Hide resolved
network/peerstore/peerstore.go Outdated Show resolved Hide resolved
network/peerstore/peerstore.go Outdated Show resolved Hide resolved
network/peerstore/peerstore.go Outdated Show resolved Hide resolved
@winder winder changed the title enhancement: adding peerstore p2p: adding peerstore Jul 19, 2023
network/p2p/peerstore/peerstore.go Outdated Show resolved Hide resolved
network/p2p/peerstore/peerstore.go Outdated Show resolved Hide resolved
tzaffi
tzaffi previously approved these changes Jul 21, 2023
Copy link
Contributor

@tzaffi tzaffi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My previous questions have been addressed and new questions don't block.

Copy link
Contributor

@Eric-Warehime Eric-Warehime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm happy to merge this now. We can adjust any things which end up needing changes in any future PRs as necessary.

go.mod Show resolved Hide resolved
go.mod Show resolved Hide resolved
@algorandskiy algorandskiy merged commit 3f32d61 into algorand:master Jul 28, 2023
18 checks passed
@jsgranados jsgranados added the p2p Work related to the p2p project label Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement p2p Work related to the p2p project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement peerstore
8 participants