Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
merklefruit committed Mar 7, 2024
1 parent 94fdeb6 commit 2e3f5ac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions msg-transport/src/quic/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use futures::future::BoxFuture;
use quinn::{self, Endpoint};
use std::{
io,
net::{SocketAddr, UdpSocket},
Expand Down Expand Up @@ -69,7 +68,7 @@ impl Quic {
&self,
addr: Option<SocketAddr>,
server_config: Option<quinn::ServerConfig>,
) -> Result<Endpoint, Error> {
) -> Result<quinn::Endpoint, Error> {
let socket = UdpSocket::bind(addr.unwrap_or(SocketAddr::from(([0, 0, 0, 0], 0))))?;

let endpoint = quinn::Endpoint::new(
Expand Down Expand Up @@ -99,7 +98,7 @@ impl Transport for Quic {

/// Binds a QUIC endpoint to the given address.
async fn bind(&mut self, addr: SocketAddr) -> Result<(), Self::Error> {
let endpoint = Endpoint::server(self.config.server_config.clone(), addr)?;
let endpoint = quinn::Endpoint::server(self.config.server_config.clone(), addr)?;

self.endpoint = Some(endpoint);

Expand Down

0 comments on commit 2e3f5ac

Please sign in to comment.