Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Upgrade libp2p primitives to use tokio implementations #12499

Closed
2 tasks
dmitry-markin opened this issue Oct 15, 2022 · 0 comments · Fixed by #12646
Closed
2 tasks

Upgrade libp2p primitives to use tokio implementations #12499

dmitry-markin opened this issue Oct 15, 2022 · 0 comments · Fixed by #12646
Assignees

Comments

@dmitry-markin
Copy link
Contributor

dmitry-markin commented Oct 15, 2022

Description

Transports and protocols in libp2p currently have different implementations for tokio and async-std runtimes (see libp2p/rust-libp2p#2962). Due to historical reasons, transports and protocols used in substrate rely on async-std primitives, which can cause issues under tokio runtime like this one: libp2p/rust-libp2p#2748. They should be upgraded to use tokio implementations.

This requires changing primitives used (i.e., replacing TcpTransport with TokioTcpTransport) and upgrading tokio version to the one compatible with libp2p.

This is a follow-up issue to #12256.

Checklist

  • Upgrade tokio to the latest version.
  • Replace async-std libp2p primitives used by their tokio variants.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: done
Development

Successfully merging a pull request may close this issue.

1 participant