From a7485f6ba0e9ec4c230f9f409c4e317c1cfc7b9d Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Mon, 17 Jul 2023 03:50:29 +0100 Subject: [PATCH] fix MpTcp name --- actix-server/src/builder.rs | 2 +- actix-server/src/socket.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/actix-server/src/builder.rs b/actix-server/src/builder.rs index 9869fe52..e1d3a2d3 100644 --- a/actix-server/src/builder.rs +++ b/actix-server/src/builder.rs @@ -127,7 +127,7 @@ impl ServerBuilder { /// /// [mptcp.dev]: https://www.mptcp.dev #[cfg(target_os = "linux")] - pub fn mptcp(mut self, mptcp_enabled: Mptcp) -> Self { + pub fn mptcp(mut self, mptcp_enabled: MpTcp) -> Self { self.mptcp = mptcp_enabled; self } diff --git a/actix-server/src/socket.rs b/actix-server/src/socket.rs index 63fbd525..486c0d46 100644 --- a/actix-server/src/socket.rs +++ b/actix-server/src/socket.rs @@ -232,7 +232,7 @@ pub(crate) fn create_mio_tcp_listener( #[cfg(not(target_os = "linux"))] let protocol = Protocol::TCP; #[cfg(target_os = "linux")] - let protocol = if matches!(mptcp, Mptcp::Disabled) { + let protocol = if matches!(mptcp, MpTcp::Disabled) { Protocol::TCP } else { Protocol::MPTCP