-
Notifications
You must be signed in to change notification settings - Fork 90
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
cmd/relay: serve multiaddrs from http address #1646
Conversation
Codecov ReportBase: 54.37% // Head: 54.14% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1646 +/- ##
==========================================
- Coverage 54.37% 54.14% -0.24%
==========================================
Files 158 158
Lines 20383 20391 +8
==========================================
- Hits 11083 11040 -43
- Misses 7812 7863 +51
Partials 1488 1488
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@@ -41,7 +41,7 @@ import ( | |||
) | |||
|
|||
// NewTCPNode returns a started tcp-based libp2p host. | |||
func NewTCPNode(ctx context.Context, cfg Config, key *ecdsa.PrivateKey, connGater ConnGater, opts ...libp2p.Option, | |||
func NewTCPNode(ctx context.Context, cfg Config, key *ecdsa.PrivateKey, connGater ConnGater, advertise bool, opts ...libp2p.Option, |
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.
what is the advertise
parameter used for? maybe add to the godoc of this function
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 will be removed soon
@@ -72,3 +78,60 @@ func TestRunBootnodeAutoP2P(t *testing.T) { | |||
testutil.SkipIfBindErr(t, err) | |||
require.NoError(t, err) | |||
} | |||
|
|||
func TestServeMultiAddrs(t *testing.T) { |
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.
can we have testutil.RequireGoldenJSON(...)
for this test for json response of http call?
Relay serves multiaddrs from http-address server.
category: feature
ticket: #1632