summaryrefslogtreecommitdiff
path: root/ext/web/blob.rs
diff options
context:
space:
mode:
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)]