error: Clone DialError
for better error reporting to installed protocols
#261
Labels
enhancement
New feature or request
The transport manager receives a
DialFailure { error: DialError }
on dial failures.Because the
DialError
does not implement Clone, the installed protocols receive only aDialFailure { peer, address }
without details about the failure.Implement
Clone
for theDialError
to propagate more information to installed protocols.This aims to improve the error details provided to substrate, especially regarding substream open errors:
Event received by the
TransportManager
:litep2p/src/transport/manager/mod.rs
Line 1535 in b967de3
Event sent to protocols without error details:
litep2p/src/transport/manager/mod.rs
Lines 1582 to 1585 in b967de3
The text was updated successfully, but these errors were encountered: