mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-29 10:41:21 +00:00
The current implementation of `MapUpgradeErr` implements `InboundUpgrade` and `OutboundUpgrade` and applies the transformation in both cases which means that mapping is always applied to inbound and outbound upgrade errors. This commit uses separate `MapInboundUpgradeErr` and `MapOutboundUpgradeErr` types which implements both traits but only map errors in one direction.