Skip to content

Commit

Permalink
use boxed udp socket
Browse files Browse the repository at this point in the history
  • Loading branch information
tthebst authored and Ralith committed Jun 30, 2023
1 parent b30711f commit 35089ee
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 @@ -101,10 +101,10 @@ impl Endpoint {
pub fn new_with_abstract_socket(
config: EndpointConfig,
server_config: Option<ServerConfig>,
socket: impl AsyncUdpSocket,
socket: Box<dyn AsyncUdpSocket>,
runtime: Arc<dyn Runtime>,
) -> io::Result<Self> {
Self::new_with_runtime(config, server_config, Box::new(socket), runtime)
Self::new_with_runtime(config, server_config, socket, runtime)
}

fn new_with_runtime(
Expand Down

0 comments on commit 35089ee

Please sign in to comment.