fix: update example
This commit is contained in:
parent
7b35265465
commit
9b178facc9
@ -117,7 +117,7 @@ async fn main(spawner: Spawner) {
|
|||||||
|
|
||||||
// Recieve and log the data of the reply
|
// Recieve and log the data of the reply
|
||||||
socket
|
socket
|
||||||
.recv_with(|(buf, addr)| {
|
.recv_from_with(|(buf, addr)| {
|
||||||
let packet = Icmpv4Packet::new_checked(buf).unwrap();
|
let packet = Icmpv4Packet::new_checked(buf).unwrap();
|
||||||
info!(
|
info!(
|
||||||
"Recieved {:?} from {} in {}ms",
|
"Recieved {:?} from {} in {}ms",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user