summaryrefslogtreecommitdiff
path: root/ext/web/blob.rs
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2023-03-26 10:24:10 +0100
committerGitHub <noreply@github.com>2023-03-26 12:24:10 +0300
commitb4c61c146a50dea0c4a53d8d505a4308ea7da279 (patch)
tree230268db099dee2f709b6a0a5dee506a04e24096 /ext/web/blob.rs
parent8b596cbae1392f17c9642c085b006bed6692dcdb (diff)
fix(cli): don't store blob and data urls in the module cache (#18261)
Diffstat (limited to 'ext/web/blob.rs')
-rw-r--r--ext/web/blob.rs5
1 files changed, 5 insertions, 0 deletions
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)]