From b4c61c146a50dea0c4a53d8d505a4308ea7da279 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Sun, 26 Mar 2023 10:24:10 +0100 Subject: fix(cli): don't store blob and data urls in the module cache (#18261) --- ext/web/blob.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ext/web/blob.rs') diff --git a/ext/web/blob.rs b/ext/web/blob.rs index 7796c18af..faa394729 100644 --- a/ext/web/blob.rs +++ b/ext/web/blob.rs @@ -79,6 +79,11 @@ impl BlobStore { let mut blob_store = self.object_urls.lock(); blob_store.remove(url); } + + pub fn clear(&self) { + self.parts.lock().clear(); + self.object_urls.lock().clear(); + } } #[derive(Debug)] -- cgit v1.2.3