Skip to content

Commit

Permalink
Remove unnecessary Arc
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralith committed Dec 29, 2021
1 parent 8084a94 commit e80c499
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 @@ -372,7 +372,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 @@ -592,7 +592,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 e80c499

Please sign in to comment.