mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
aquatic_ws: reclaim pending_scrape_slab memory after entry removal
This commit is contained in:
parent
7ae7442284
commit
07e1b8230f
1 changed files with 4 additions and 1 deletions
|
|
@ -416,7 +416,10 @@ impl ConnectionWriter {
|
|||
if let Some(out_message) = opt_message {
|
||||
self.send_out_message(&out_message).await?;
|
||||
|
||||
RefCell::borrow_mut(&self.pending_scrape_slab).remove(pending_scrape_id.0);
|
||||
let mut slab = RefCell::borrow_mut(&self.pending_scrape_slab);
|
||||
|
||||
slab.remove(pending_scrape_id.0);
|
||||
slab.shrink_to_fit();
|
||||
}
|
||||
}
|
||||
out_message => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue