mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 18:25:30 +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 {
|
if let Some(out_message) = opt_message {
|
||||||
self.send_out_message(&out_message).await?;
|
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 => {
|
out_message => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue