Skip to content

Commit

Permalink
chore: fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
marverlous811 committed Nov 17, 2024
1 parent 2d24e68 commit 2a324c3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/peer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ impl PeerConnection {
pub fn new_connecting<SECURE: HandshakeProtocol>(secure: Arc<SECURE>, local_id: PeerId, to_peer: PeerId, connecting: Connecting, internal_tx: Sender<InternalEvent>, ctx: SharedCtx) -> Self {
let remote = connecting.remote_address();
let conn_id = ConnectionId::rand();
let peer_id = to_peer.clone();

tokio::spawn(async move {
match connecting.await {
Expand All @@ -95,7 +94,7 @@ impl PeerConnection {
});
Self {
conn_id,
peer_id: Some(peer_id),
peer_id: Some(to_peer),
is_connected: false,
}
}
Expand Down

0 comments on commit 2a324c3

Please sign in to comment.