This commit is contained in:
parent
53fe3333f0
commit
27b4644730
12 changed files with 852 additions and 642 deletions
|
|
@ -22,7 +22,7 @@ pub fn handle_deleted_peer(
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub fn handle_incoming_packets(mut packets: EventReader<InboundPacket>) {
|
||||
pub fn handle_incoming_packets(mut packets: MessageReader<InboundPacket>) {
|
||||
for InboundPacket(packet) in packets.read() {
|
||||
info!("Packet received: {:?}", packet.message);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue