-
Notifications
You must be signed in to change notification settings - Fork 179
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
[Networking] Refinement of message scope; encapsulating the publish logic in the libp2p node #4635
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov Report
@@ Coverage Diff @@
## master #4635 +/- ##
==========================================
+ Coverage 54.69% 55.31% +0.62%
==========================================
Files 917 802 -115
Lines 85624 72852 -12772
==========================================
- Hits 46833 40300 -6533
+ Misses 35197 29243 -5954
+ Partials 3594 3309 -285
Flags with carried forward coverage won't be shown. Click here to find out more.
|
yhassanzadeh13
changed the title
Yahya/6851 refactoring middleware
[Networking] Refinement of message scope; encapsulating the publish logic in the libp2p node
Aug 17, 2023
yhassanzadeh13
requested review from
kc1116
and removed request for
peterargue
August 18, 2023 19:22
kc1116
reviewed
Aug 23, 2023
kc1116
approved these changes
Aug 23, 2023
Co-authored-by: Khalil Claybon <khalil.claybon@dapperlabs.com>
gomisha
reviewed
Aug 24, 2023
gomisha
reviewed
Aug 24, 2023
gomisha
reviewed
Aug 24, 2023
gomisha
reviewed
Aug 24, 2023
gomisha
approved these changes
Aug 24, 2023
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. Please address comments / suggestions before merging.
Co-authored-by: Misha <misha.rybalov@dapperlabs.com>
…e' into yahya/6851-refactoring-middleware
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Introduction
This Pull Request (PR) is a continuation of a larger effort to refactor the networking layer structure within the Flow blockchain, specifically focusing on the removal of the
middleware
component. It aligns with the strategic approach outlined in Issue #6851.Objective
The primary goal of this PR is to:
Publish
logic of pubsub out of the middleware, placing it within the LibP2P Node, and encapsulating the logic entirely at the LibP2P Node level.Design Principles
The following software engineering principles guide the changes:
Implementation Details
The specific changes are as follows:
Publish
logic of pubsub has been moved from the middleware to the LibP2P Node.Benefits
The resulting abstraction provides a safer and more maintainable structure. By adhering to established software engineering principles, this PR contributes to the overall robustness and efficiency of the networking layer.