Skip to content

Commit

Permalink
Remove unnecessary Arc
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralith committed Nov 18, 2021
1 parent 84fa4de commit 16e1e43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quinn/src/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ impl Drop for EndpointDriver {
#[derive(Debug)]
pub(crate) struct EndpointInner {
socket: UdpSocket,
udp_state: Arc<UdpState>,
udp_state: UdpState,
inner: proto::Endpoint,
outgoing: VecDeque<proto::Transmit>,
incoming: VecDeque<Connecting>,
Expand Down Expand Up @@ -566,7 +566,7 @@ impl EndpointRef {
let (dirty_send, dirty) = mpsc::unbounded_channel();
Self(Arc::new(Mutex::new(EndpointInner {
socket,
udp_state: Arc::new(UdpState::new()),
udp_state: UdpState::new(),
inner,
ipv6,
outgoing: VecDeque::new(),
Expand Down

0 comments on commit 16e1e43

Please sign in to comment.