Skip to content

Commit

Permalink
Rename UtpSocket to UtpStream
Browse files Browse the repository at this point in the history
  • Loading branch information
ogenev committed May 26, 2022
1 parent 0dbc155 commit 64f9cf4
Show file tree
Hide file tree
Showing 3 changed files with 115 additions and 115 deletions.
6 changes: 3 additions & 3 deletions trin-core/src/portalnet/overlay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use crate::portalnet::{
use crate::{
portalnet::types::content_key::RawContentKey,
utp::{
stream::{UtpListenerRequest, UtpSocket, BUF_SIZE},
stream::{UtpListenerRequest, UtpStream, BUF_SIZE},
trin_helpers::{UtpAccept, UtpMessage, UtpStreamId},
},
};
Expand Down Expand Up @@ -281,7 +281,7 @@ impl<TContentKey: OverlayContentKey + Send, TMetric: Metric + Send>
conn_id: u16,
) -> Result<Content, OverlayRequestError> {
// initiate the connection to the acceptor
let (tx, rx) = tokio::sync::oneshot::channel::<anyhow::Result<UtpSocket>>();
let (tx, rx) = tokio::sync::oneshot::channel::<anyhow::Result<UtpStream>>();
self.utp_listener_tx
.send(UtpListenerRequest::Connect(
conn_id,
Expand Down Expand Up @@ -390,7 +390,7 @@ impl<TContentKey: OverlayContentKey + Send, TMetric: Metric + Send>
}

// initiate the connection to the acceptor
let (tx, rx) = tokio::sync::oneshot::channel::<anyhow::Result<UtpSocket>>();
let (tx, rx) = tokio::sync::oneshot::channel::<anyhow::Result<UtpStream>>();

self.utp_listener_tx.send(UtpListenerRequest::Connect(
conn_id,
Expand Down
Loading

0 comments on commit 64f9cf4

Please sign in to comment.