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

basic_host: close swarm on Close #2916

Merged
merged 2 commits into from
Aug 15, 2024
Merged

basic_host: close swarm on Close #2916

merged 2 commits into from
Aug 15, 2024

Conversation

sukunrt
Copy link
Member

@sukunrt sukunrt commented Aug 10, 2024

Using the BasicHost constructor transfers the ownership of the swarm. This is similar to how using libp2p.New transfers the ownership of user provided config options like ResourceManager, all of which are closed on host.Close.

closes #2911

Using the `BasicHost` constructor transfers the ownership of the swarm.
This is similar to how using `libp2p.New` transfers the ownership of
user provided config options like `ResourceManager`, all of which are
closed on `host.Close`
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.

DHT: go-libp2p v0.34 breaks TestRTEvictionOnFailedQuery in the DHT
2 participants