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
error[E0271]: expected `std::vec::IntoIter<IndexedProtoName>` to be an iterator that yields `ProtocolName`, but it yields `IndexedProtoName`
--> swarm/src/handler/multi.rs:458:21
|
458 | type InfoIter = std::vec::IntoIter<IndexedProtoName>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `ProtocolName`, found struct `IndexedProtoName`
The error above is what brought thomaseizinger's attention to this issue. For further understanding, see comments: #2831 (comment) and #2966 (comment) and the replies by @thomaseizinger on the latter.
This happens due to changing the current definition of UpgradeInfoSend from this
Description
Currently
MultiHandler
isn't used anywhere inside the project. Is it possible to remove or modify it?Motivation
MultiHandler
violates the guideline of not implementingUpgradeInfoSend
,OutboundUpgradeSend
, andInboundUpgradeSend
mentioned inswarm/src/upgrade.rs
. See comment: core: RemoveProtocolName
trait in favor of always using strings #2966 (comment)It's a hurdle in solving misc/multistream-select: Treat protocol as
String
and not[u8]
#2831. Try building WIP solution for the said issue at https://github.com/efarg/rust-libp2p/tree/2966One of the errors encountered would be:
The error above is what brought thomaseizinger's attention to this issue. For further understanding, see comments: #2831 (comment) and #2966 (comment) and the replies by @thomaseizinger on the latter.
This happens due to changing the current definition of
UpgradeInfoSend
from thisrust-libp2p/swarm/src/upgrade.rs
Lines 31 to 39 in 5b4eab7
to this
Are you planning to do it yourself in a pull request?
Yes.
The text was updated successfully, but these errors were encountered: