Skip to content

TransportManger: Use a builder pattern for the transport manager #343

@lexnv

Description

@lexnv

impl TransportManager {
/// Create new [`crate::transport::manager::TransportManager`].
// TODO: don't return handle here
pub fn new(
keypair: Keypair,
supported_transports: HashSet<SupportedTransport>,
bandwidth_sink: BandwidthSink,
max_parallel_dials: usize,
connection_limits_config: limits::ConnectionLimitsConfig,
) -> (Self, TransportManagerHandle) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: lowNice-to-have improvements, optimizations, or future considerationstodoExtracted from code todos

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions