Closed bryanchriswhite closed 1 year ago
Patch coverage: 32.43
% and project coverage change: +0.25
:tada:
Comparison is base (
9d5dffe
) 31.52% compared to head (fe24824
) 31.78%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
Our GitHub checks need improvements? Share your feedbacks!
Description
Factor out "unicast routing" concerns which will be common to both RainTree and background routers. To implement the
Router
interface (which I believe is applied appropriately), each must be able to both send and receive messages directly to/from individual peers. In libp2p this is done via streams.Before
After
See #505 "Integration / Architecture" class diagrams for more context.
Summary generated by Reviewpad on 29 Jun 23 06:52 UTC
This pull request includes several changes related to improving testability, reducing technical debt, and implementing unicast functionality.
The overall changes aim to improve the code structure, make it more maintainable and testable, and add support for handling unicast messages in a peer-to-peer network.
Here is a summary of the changes per file:
setup.go
, changes were made to register providers and routers to the module registry and improve testability.router.go
, changes were made to improve peer discovery, introduce encapsulated approaches, and share interfaces among modules. Additionally, type and function names were updated.logging.go
underwent a rename and changes were made to the package name, logging functionality, and function names.network.go
, changes were made to imports, type names, function names, and the implementation of thehandleRainTreeMsg
function to support the unicast functionality.testutil.go
was added as a new file to provide testing utilities for the unicast functionality.p2p/raintree/testutil.go
, changes were made to imports and a function to call theHandleStream
method from theUnicastRouter
struct.These changes collectively improve the testability, code structure, and unicast functionality in the project.
Issue
505
Dependants
732
Type of change
Please mark the relevant option(s):
List of changes
rainTreeRouter
and into newUnicastRouter
typeTesting
make develop_test
; if any code changes were mademake test_e2e
on k8s LocalNet; if any code changes were madee2e-devnet-test
passes tests on DevNet; if any code was changedRequired Checklist
godoc
format comments on touched members (see: tip.golang.org/doc/comment)If Applicable Checklist
shared/docs/*
if I updatedshared/*
README(s)