From 3aca5a9416642a24b99d3e0e020ae08d5f279420 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 22 Aug 2020 22:31:41 +0100 Subject: [PATCH] updates: delete RECENT_BUFFER --- src/updates.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/updates.rs b/src/updates.rs index 494d0366..4b04ef99 100644 --- a/src/updates.rs +++ b/src/updates.rs @@ -8,8 +8,6 @@ use crate::imports::*; #[serde(transparent)] pub struct ClientSequence(u64); -const RECENT_BUFFER : usize = 50; - // ---------- from manamgenet operations ---------- #[derive(Debug)] // not Default @@ -100,7 +98,7 @@ enum TransmitUpdateEntry<'u> { impl Default for PlayerUpdates { fn default() -> PlayerUpdates { PlayerUpdates { - log : StableIndexVecDeque::with_capacity(RECENT_BUFFER), + log : StableIndexVecDeque::with_capacity(50), cv : Default::default(), } } } -- 2.30.2