-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Labels
priority: lowNice-to-have improvements, optimizations, or future considerationsNice-to-have improvements, optimizations, or future considerationstodoExtracted from code todosExtracted from code todos
Description
litep2p/src/transport/tcp/connection.rs
Lines 212 to 231 in e0b7118
| /// Open connection to remote peer at `address`. | |
| // TODO: this function can be removed | |
| pub(super) async fn open_connection( | |
| connection_id: ConnectionId, | |
| keypair: Keypair, | |
| stream: TcpStream, | |
| address: AddressType, | |
| peer: Option<PeerId>, | |
| yamux_config: crate::yamux::Config, | |
| max_read_ahead_factor: usize, | |
| max_write_buffer_size: usize, | |
| connection_open_timeout: Duration, | |
| substream_open_timeout: Duration, | |
| ) -> Result<NegotiatedConnection, NegotiationError> { | |
| tracing::debug!( | |
| target: LOG_TARGET, | |
| ?address, | |
| ?peer, | |
| "open connection to remote peer", | |
| ); |
Metadata
Metadata
Assignees
Labels
priority: lowNice-to-have improvements, optimizations, or future considerationsNice-to-have improvements, optimizations, or future considerationstodoExtracted from code todosExtracted from code todos