mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +00:00
Fix UDP test
This commit is contained in:
parent
1c88b8f336
commit
335c3e73a4
@ -66,7 +66,7 @@ struct Send {}
|
|||||||
|
|
||||||
impl SendFn for Send {
|
impl SendFn for Send {
|
||||||
fn send(&self, socket: &UdpSocket, buf: &[u8], addr: &SocketAddr) -> Result<usize, io::Error> {
|
fn send(&self, socket: &UdpSocket, buf: &[u8], addr: &SocketAddr) -> Result<usize, io::Error> {
|
||||||
socket.connect(*addr).expect("could not connect");
|
socket.connect(addr).expect("could not connect");
|
||||||
socket.send(buf)
|
socket.send(buf)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user