-
Notifications
You must be signed in to change notification settings - Fork 63
chore: Change from net to go-p2p #4051
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
chore: Change from net to go-p2p #4051
Conversation
e8368fc to
6c3acaa
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #4051 +/- ##
===========================================
+ Coverage 74.21% 74.46% +0.24%
===========================================
Files 489 488 -1
Lines 45491 45230 -261
===========================================
- Hits 33761 33677 -84
+ Misses 9445 9298 -147
+ Partials 2285 2255 -30
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 6 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for this Fred :)
I have a couple of requests that I would like resolving before merge, but they are all pretty localised.
| Example: Connect to a peer | ||
| defradb client p2p connect /ip4/0.0.0.0/tcp/9171/p2p/12D3KooW... | ||
| Example: Connect to multiple peers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
praise: Thanks for adding this
6c3acaa to
c43dbf3
Compare
| tracer = telemetry.NewTracer() | ||
| ) | ||
|
|
||
| type ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thought: I had no idea we could do this, although it makes sense from a syntax perspective :) Thanks :)
c43dbf3 to
8fd3222
Compare
| storedRep.CollectionIDs = append(storedRep.CollectionIDs, col.CollectionID()) | ||
| // Update the list of collections for each replicator prior to persisting. | ||
| storedRepCollectionIDs := make(map[string]map[string]struct{}) // replicatorID => collectionID | ||
| addedCols := make(map[string][]client.Collection) // peerID => list of collections added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: What does this comment mean? peerID => list of collections added
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it means its a map of peerIDs to the list of collections added.
9702b90 to
17e0b3b
Compare
17e0b3b to
d124e4d
Compare
96f57a8 to
75ebc11
Compare
Relevant issue(s)
Resolves #4048
Resolves #4031
Description
This PR removes the
defradb/netpackage in favour ofsourcenetwork/go-p2p. It brings in the latest changes fromgo-p2pwhich implies making changes to theclient.Hostinterface.Tasks
How has this been tested?
make test
Specify the platform(s) on which this was tested: