Use BTreeMap
in Server
so we release memory when maps are cleared
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
63df644d8f
commit
555847449b
2 changed files with 8 additions and 11 deletions
|
@ -24,7 +24,7 @@ use std::{
|
|||
};
|
||||
use tracing::instrument;
|
||||
|
||||
#[derive(Clone, Copy, PartialEq, Eq, Hash, Debug, Serialize)]
|
||||
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Debug, Serialize)]
|
||||
pub struct ConnectionId(pub u32);
|
||||
|
||||
impl fmt::Display for ConnectionId {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue