Skip to content

Commit c5775bf

Browse files
committed
Rename UtpSocket to UtpStream
1 parent 1096785 commit c5775bf

File tree

3 files changed

+115
-115
lines changed

3 files changed

+115
-115
lines changed

trin-core/src/portalnet/overlay.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use crate::portalnet::{
1818
use crate::{
1919
portalnet::types::content_key::RawContentKey,
2020
utp::{
21-
stream::{UtpListenerRequest, UtpSocket, BUF_SIZE},
21+
stream::{UtpListenerRequest, UtpStream, BUF_SIZE},
2222
trin_helpers::{UtpAccept, UtpMessage, UtpStreamId},
2323
},
2424
};
@@ -281,7 +281,7 @@ impl<TContentKey: OverlayContentKey + Send, TMetric: Metric + Send>
281281
conn_id: u16,
282282
) -> Result<Content, OverlayRequestError> {
283283
// initiate the connection to the acceptor
284-
let (tx, rx) = tokio::sync::oneshot::channel::<anyhow::Result<UtpSocket>>();
284+
let (tx, rx) = tokio::sync::oneshot::channel::<anyhow::Result<UtpStream>>();
285285
self.utp_listener_tx
286286
.send(UtpListenerRequest::Connect(
287287
conn_id,
@@ -390,7 +390,7 @@ impl<TContentKey: OverlayContentKey + Send, TMetric: Metric + Send>
390390
}
391391

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

395395
self.utp_listener_tx.send(UtpListenerRequest::Connect(
396396
conn_id,

0 commit comments

Comments
 (0)