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 27, 2021
1 parent 77c2968 commit b4082d4
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 @@ -363,7 +363,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 @@ -571,7 +571,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 b4082d4

Please sign in to comment.