From de5a6971f033f5c6c50e6ec1ca88d6c76c20b672 Mon Sep 17 00:00:00 2001 From: lubeilin <1791778603@qq.com> Date: Sun, 24 Sep 2023 14:58:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=AF=BB=E5=8F=96=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E4=B8=8D=E9=9C=80=E8=A6=81=E5=86=8D=E6=8F=92=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnt/src/channel/channel.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/vnt/src/channel/channel.rs b/vnt/src/channel/channel.rs index 4ef1e62..130d421 100644 --- a/vnt/src/channel/channel.rs +++ b/vnt/src/channel/channel.rs @@ -522,10 +522,6 @@ impl Context { pub fn update_read_time(&self, id: &Ipv4Addr, route_key: &RouteKey) { if let Some(mut time) = self.inner.route_table_time.get_mut(&(*route_key, *id)) { *time.value_mut() = Instant::now(); - } else { - self.inner - .route_table_time - .insert((*route_key, *id), Instant::now()); } } }