Skip to content
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

Merged
merged 1 commit into from
Jan 18, 2023
Merged

Conversation

corverroos
Copy link
Contributor

Relay serves multiaddrs from http-address server.

category: feature
ticket: #1632

@codecov
Copy link

codecov bot commented Jan 17, 2023

Codecov Report

Base: 54.37% // Head: 54.14% // Decreases project coverage by -0.24% ⚠️

Coverage data is based on head (1b9058b) compared to base (dd47db7).
Patch coverage: 46.66% of modified lines in pull request are covered.

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              
Impacted Files Coverage Δ
cmd/relay/relay.go 54.46% <30.00%> (-1.85%) ⬇️
p2p/p2p.go 14.91% <50.00%> (-0.47%) ⬇️
app/app.go 63.57% <100.00%> (-0.18%) ⬇️
cmd/relay/p2p.go 38.31% <100.00%> (ø)
dkg/dkg.go 53.76% <100.00%> (ø)
core/qbft/qbft.go 73.73% <0.00%> (-9.04%) ⬇️
p2p/config.go 61.53% <0.00%> (-3.85%) ⬇️
core/consensus/transport.go 64.58% <0.00%> (-0.70%) ⬇️
core/leadercast/transport.go 76.33% <0.00%> (+1.18%) ⬆️

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.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -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,
Copy link
Contributor

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

Copy link
Contributor Author

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

@corverroos corverroos added the merge when ready Indicates bulldozer bot may merge when all checks pass label Jan 18, 2023
@obol-bulldozer obol-bulldozer bot merged commit 1b4c97c into main Jan 18, 2023
@obol-bulldozer obol-bulldozer bot deleted the corver/relayma branch January 18, 2023 07:55
@@ -72,3 +78,60 @@ func TestRunBootnodeAutoP2P(t *testing.T) {
testutil.SkipIfBindErr(t, err)
require.NoError(t, err)
}

func TestServeMultiAddrs(t *testing.T) {
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants