From 31b06cd7134593e5570237f3bcc9123aa6bed3b7 Mon Sep 17 00:00:00 2001 From: lbl8603 <49143209+lbl8603@users.noreply.github.com> Date: Mon, 1 Jul 2024 23:04:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E7=BC=93=E5=86=B2=E5=8C=BA?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnt/src/channel/mod.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/vnt/src/channel/mod.rs b/vnt/src/channel/mod.rs index c365565..1714057 100644 --- a/vnt/src/channel/mod.rs +++ b/vnt/src/channel/mod.rs @@ -227,12 +227,7 @@ pub(crate) fn init_context( address, ) }; - if let Err(e) = socket.set_send_buffer_size(2 * 1024 * 1024) { - log::warn!("set_send_buffer_size {:?}", e); - } - if let Err(e) = socket.set_recv_buffer_size(2 * 1024 * 1024) { - log::warn!("set_send_buffer_size {:?}", e); - } + socket .bind(&address.into()) .with_context(|| format!("bind failed: {}", &address))?;