-
Notifications
You must be signed in to change notification settings - Fork 493
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: enable p2p http txsync #5922
p2p: enable p2p http txsync #5922
Conversation
b34e728
to
84f06d4
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## feature/p2p #5922 +/- ##
===============================================
- Coverage 56.04% 56.01% -0.03%
===============================================
Files 482 482
Lines 68078 68099 +21
===============================================
- Hits 38153 38146 -7
- Misses 27327 27349 +22
- Partials 2598 2604 +6 ☔ View full report in Codecov by Sentry. |
84f06d4
to
22a0b29
Compare
@@ -167,7 +167,7 @@ type wsPeerCore struct { | |||
readBuffer chan<- IncomingMessage | |||
rootURL string | |||
originAddress string // incoming connection remote host | |||
client http.Client | |||
client *http.Client |
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.
GetHTTPClient
returns address of this variable, and it cannot be nil. But some client code checked it for nil
Summary
GossipNode.GetRoundTripper
withGossipNode.GetHTTPClient
as higher level alternative. (only txsync used GetRoundTripper outside of thenetwork
package.Test Plan
Added a new unit test to txSync to test p2p flow.