Skip to content

Commit

Permalink
Revert recv buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
plauche committed May 23, 2023
1 parent 586b2ef commit 39156fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transports/src/udp_transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl UdpTransport {

impl Transport for UdpTransport {
fn receive(&self) -> Result<(Message, String)> {
let mut buf = vec![0; 1024];
let mut buf = vec![0; usize::from(self.mtu)];
let mut sender_addr;
let mut read_attempts = 0;
let mut read_len = 0;
Expand Down

0 comments on commit 39156fd

Please sign in to comment.