You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
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.
Description
Transports and protocols in libp2p currently have different implementations for
tokioandasync-stdruntimes (see libp2p/rust-libp2p#2962). Due to historical reasons, transports and protocols used in substrate rely onasync-stdprimitives, which can cause issues undertokioruntime like this one: libp2p/rust-libp2p#2748. They should be upgraded to usetokioimplementations.This requires changing primitives used (i.e., replacing
TcpTransportwithTokioTcpTransport) and upgradingtokioversion to the one compatible with libp2p.This is a follow-up issue to #12256.
Checklist
tokioto the latest version.async-stdlibp2pprimitives used by theirtokiovariants.