Skip to content

transports: Remove ConnectionError::Timeout variant #205

Open
@lexnv

Description

@lexnv

The ConnectionError::Timeout variant can be deduced from the FailedToNegotiate::SubstreamError.

enum ConnectionError {
/// Timeout
Timeout {
/// Protocol.
protocol: Option<ProtocolName>,
/// Substream ID.
substream_id: Option<SubstreamId>,
},
/// Failed to negotiate connection/substream.
FailedToNegotiate {
/// Protocol.
protocol: Option<ProtocolName>,
/// Substream ID.
substream_id: Option<SubstreamId>,
/// Error.
error: SubstreamError,
},
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions