mirror of
https://github.com/greatest-ape/aquatic.git
synced 2026-10-24 18:22:25 +00:00
aquatic_ws: reclaim pending_scrape_slab memory after entry removal
This commit is contained in:
1 parent
7ae7442284
commit
07e1b8230f
1 file changed
+4
-1
@@ -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 => {
|
||||
|
||||
Reference in new issue
Block a user