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

move go-libp2p-circuit here #1626

Merged
merged 171 commits into from
Jul 1, 2022
Merged

move go-libp2p-circuit here #1626

merged 171 commits into from
Jul 1, 2022

Conversation

marten-seemann
Copy link
Contributor

go-libp2p-circuit has been deprecated for a long time, but we're still using it in our circuit v2 compatibility tests.

With the repo consolidation in v0.20 go-libp2p-circuit would now depend on go-libp2p, creating a circular dependency between the two repo (NOT between the packages, so the Go compiler is fine with it).

Assuming that we want to keep the compatibility test, merging -circuit here seems like the least bad thing to do. We're moving it to an internal directory, so that no user can import it.

whyrusleeping and others added 30 commits March 29, 2017 15:05
1. it's not REALAY
2. srcaddr/dstaddr not meaningful for STATUS
so we hand-craft a compatible delimited reader which doesn't.
so that it works for both active and passive connections.
connection might have to resolve through the DHT, so it can take a while.
marten-seemann and others added 20 commits July 10, 2021 13:59
simplify generation of reservations
fix race condition in TestActiveRelay
* base limits on reservations issued

* switch default reservation limits per peer and per IP

* don't export the constructor for relay.constraints

* panic when reading from crypto/rand fails

* optimize IP-based reservation lookup

* use lists instead of maps to save reservations

* save expiry timestamp in reservations

* use slices instead of linked lists for reservations

* remove unused rand in constraints
This code is being moved to go-libp2p.
chore: update go-libp2p-core, go-libp2p-swarm
add a Close method, remove the context from the constructor
use the transport.Upgrader interface
use the resource manager
@marten-seemann marten-seemann requested review from vyzo and MarcoPolo July 1, 2022 15:47
Copy link
Contributor

@vyzo vyzo left a comment

Choose a reason for hiding this comment

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

ugh.... but what do? so fine.

@marten-seemann marten-seemann changed the title move go-libp2p-circuit move go-libp2p-circuit here Jul 1, 2022
@marten-seemann marten-seemann merged commit 196acf2 into master Jul 1, 2022
@MarcoPolo MarcoPolo mentioned this pull request Jul 7, 2022
41 tasks
@ajnavarro ajnavarro mentioned this pull request Aug 24, 2022
72 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.