mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-10-23 02:13:37 +00:00
Use the renamed functions from socket2
This commit is contained in:
1 file changed
+2
-2
@@ -160,7 +160,7 @@ impl UnixOrTcpListener {
|
||||
|
||||
let socket = socket2::SockRef::from(&stream);
|
||||
socket.set_keepalive(true)?;
|
||||
socket.set_nodelay(true)?;
|
||||
socket.set_tcp_nodelay(true)?;
|
||||
|
||||
Ok((remote_addr.into(), UnixOrTcpConnection::Tcp { stream }))
|
||||
}
|
||||
@@ -198,7 +198,7 @@ impl UnixOrTcpListener {
|
||||
|
||||
let socket = socket2::SockRef::from(&stream);
|
||||
socket.set_keepalive(true)?;
|
||||
socket.set_nodelay(true)?;
|
||||
socket.set_tcp_nodelay(true)?;
|
||||
|
||||
Poll::Ready(Ok((
|
||||
remote_addr.into(),
|
||||
|
||||
Reference in new issue
Block a user