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

Add standalone implementation of v1 Relay #1186

Merged
merged 7 commits into from
Sep 20, 2021
Merged

Conversation

vyzo
Copy link
Contributor

@vyzo vyzo commented Sep 14, 2021

This adds an implementation of a v1 Relay, extracted and slightly modified for a bit of resource management, from go-libp2p-circuit, intended to be used by standalone daemon implementations and tests.
This allows us to deprecate and completely dereference the go-libp2p-circuit repo.

TBD:

  • Remove references to go-libp2p-circuit from production code.
  • Update tests to use the in-tree v1 relay.
  • Update examples to use the in-tree v1 relay.

Intended to be used by standalone daemons and tests
@marten-seemann
Copy link
Contributor

Do we have to do this? Can't we just leave the code in go-libp2p-circuit for the transition period? Then we wouldn't have to review a 1340 LOC PR, but could just use code that we know works in production.

@vyzo
Copy link
Contributor Author

vyzo commented Sep 15, 2021 via email

Copy link
Contributor

@marten-seemann marten-seemann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't done an in-depth review, since this is mostly code from go-libp2p-circuit.

Why is go-libp2p-circuit not removed from go.mod in this PR?

@vyzo
Copy link
Contributor Author

vyzo commented Sep 17, 2021 via email

@vyzo
Copy link
Contributor Author

vyzo commented Sep 17, 2021

Turns out we need to keep a reference in go.mod for now, we have a compatiblity test which tests whether the v2 client can connect to legacy clients.
So we'll have to keep it for now, unless we want to remove that test (I find it useful however).

@vyzo vyzo force-pushed the feat/circuitv1-relay branch 2 times, most recently from a14953a to 8e5996b Compare September 17, 2021 10:29
@vyzo vyzo marked this pull request as ready for review September 17, 2021 10:49
@vyzo
Copy link
Contributor Author

vyzo commented Sep 17, 2021

marked as ready -- @marten-seemann care for another pass before we merge?

@marten-seemann marten-seemann merged commit d1e2681 into master Sep 20, 2021
@vyzo vyzo deleted the feat/circuitv1-relay branch September 20, 2021 15:24
@aschmahmann aschmahmann mentioned this pull request Dec 1, 2021
80 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants